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.ChangesetModificationType
modificationType
private HistoryOsmPrimitive
primitive
-
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.ChangesetModificationType
getModificationType()
Returns the type of modification.HistoryOsmPrimitive
getPrimitive()
Returns the affected history primitive.java.lang.String
toString()
-
-
-
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.ChangesetDataSetEntry
Returns the type of modification.- Specified by:
getModificationType
in interfaceChangesetDataSet.ChangesetDataSetEntry
- Returns:
- the type of modification
-
getPrimitive
public HistoryOsmPrimitive getPrimitive()
Description copied from interface:ChangesetDataSet.ChangesetDataSetEntry
Returns the affected history primitive.- Specified by:
getPrimitive
in interfaceChangesetDataSet.ChangesetDataSetEntry
- Returns:
- the affected history primitive
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-