public final class WaySegment extends Object implements Comparable<WaySegment>
Modifier and Type | Field and Description |
---|---|
int |
lowerIndex
The index of one of the 2 nodes in the way.
|
Way |
way
The way.
|
Constructor and Description |
---|
WaySegment(Way w,
int i) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(WaySegment o) |
boolean |
equals(Object o) |
Node |
getFirstNode()
Returns the first node of the way segment.
|
Node |
getSecondNode()
Returns the second (last) node of the way segment.
|
int |
hashCode() |
Way |
toWay()
Returns this way segment as complete way.
|
public int lowerIndex
lowerIndex + 1
.public WaySegment(Way w, int i)
public Node getFirstNode()
public Node getSecondNode()
public int compareTo(WaySegment o)
compareTo
in interface Comparable<WaySegment>