org.openstreetmap.josm.data.osm
Class WaySegment
java.lang.Object
org.openstreetmap.josm.data.osm.WaySegment
public final class WaySegment
- extends java.lang.Object
A segment consisting of 2 consecutive nodes out of a way.
Field Summary |
int |
lowerIndex
The index of one of the 2 nodes in the way. |
Way |
way
The way. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
way
public Way way
- The way.
lowerIndex
public int lowerIndex
- The index of one of the 2 nodes in the way. The other node has the
index
lowerIndex + 1
.
WaySegment
public WaySegment(Way w,
int i)
getFirstNode
public Node getFirstNode()
getSecondNode
public Node getSecondNode()
toWay
public Way toWay()
- returns this way segment as complete way.
- Returns:
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
JOSM