Package org.openstreetmap.josm.data.osm
Class ChangesetDataSet.DefaultChangesetDataSetEntry
- java.lang.Object
-
- org.openstreetmap.josm.data.osm.ChangesetDataSet.DefaultChangesetDataSetEntry
-
- All Implemented Interfaces:
ChangesetDataSet.ChangesetDataSetEntry
- Enclosing class:
- ChangesetDataSet
public static class ChangesetDataSet.DefaultChangesetDataSetEntry extends java.lang.Object implements ChangesetDataSet.ChangesetDataSetEntry
Class to keep one entry of a changeset: the combination of modification type and primitive.
-
-
Field Summary
Fields Modifier and Type Field Description private ChangesetDataSet.ChangesetModificationTypemodificationTypeprivate HistoryOsmPrimitiveprimitive
-
Constructor Summary
Constructors Constructor Description DefaultChangesetDataSetEntry(ChangesetDataSet.ChangesetModificationType modificationType, HistoryOsmPrimitive primitive)Construct new entry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChangesetDataSet.ChangesetModificationTypegetModificationType()Returns the type of modification.HistoryOsmPrimitivegetPrimitive()Returns the affected history primitive.java.lang.StringtoString()
-
-
-
Field Detail
-
modificationType
private final ChangesetDataSet.ChangesetModificationType modificationType
-
primitive
private final HistoryOsmPrimitive primitive
-
-
Constructor Detail
-
DefaultChangesetDataSetEntry
public DefaultChangesetDataSetEntry(ChangesetDataSet.ChangesetModificationType modificationType, HistoryOsmPrimitive primitive)
Construct new entry.- Parameters:
modificationType- the modification typeprimitive- the primitive
-
-
Method Detail
-
getModificationType
public ChangesetDataSet.ChangesetModificationType getModificationType()
Description copied from interface:ChangesetDataSet.ChangesetDataSetEntryReturns the type of modification.- Specified by:
getModificationTypein interfaceChangesetDataSet.ChangesetDataSetEntry- Returns:
- the type of modification
-
getPrimitive
public HistoryOsmPrimitive getPrimitive()
Description copied from interface:ChangesetDataSet.ChangesetDataSetEntryReturns the affected history primitive.- Specified by:
getPrimitivein interfaceChangesetDataSet.ChangesetDataSetEntry- Returns:
- the affected history primitive
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-