org.openstreetmap.josm.data.osm
Class WaySegment

java.lang.Object
  extended by 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.
 
Constructor Summary
WaySegment(Way w, int i)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 Node getFirstNode()
           
 Node getSecondNode()
           
 int hashCode()
           
 Way toWay()
          returns this way segment as complete way.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Constructor Detail

WaySegment

public WaySegment(Way w,
                  int i)
Method Detail

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