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 newOldNodeState
for the given node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
EastNorth
getEastNorth()
Returns old east/north.LatLon
getLatLon()
Returns old lat/lon.int
hashCode()
boolean
isModified()
Returns old modified state.
-
-
-
Constructor Detail
-
OldNodeState
public OldNodeState(Node node)
Constructs a newOldNodeState
for 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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-