Package org.openstreetmap.josm.command
Class Command.OldNodeState
- java.lang.Object
-
- org.openstreetmap.josm.command.Command.OldNodeState
-
- Enclosing class:
- Command
public static class Command.OldNodeState extends java.lang.Object
Small helper for holding the interesting part of the old data state of the objects.
-
-
Constructor Summary
Constructors Constructor Description OldNodeState(Node node)Constructs a newOldNodeStatefor the given node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)EastNorthgetEastNorth()Returns old east/north.LatLongetLatLon()Returns old lat/lon.inthashCode()booleanisModified()Returns old modified state.
-
-
-
Constructor Detail
-
OldNodeState
public OldNodeState(Node node)
Constructs a newOldNodeStatefor the given node.- Parameters:
node- The node whose state has to be remembered
-
-
Method Detail
-
getLatLon
public final LatLon getLatLon()
Returns old lat/lon.- Returns:
- old lat/lon
- Since:
- 10248
- See Also:
Node.getCoor()
-
getEastNorth
public final EastNorth getEastNorth()
Returns old east/north.- Returns:
- old east/north
- See Also:
INode.getEastNorth()
-
isModified
public final boolean isModified()
Returns old modified state.- Returns:
- old modified state
- See Also:
#isModified()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-