Class SegmentIndex
java.lang.Object
com.here.platform.location.inmemory.graph.SegmentIndex
- All Implemented Interfaces:
Serializable
,scala.Equals
,scala.Product
,scala.Serializable
The Index of an undirected road segment in a
GraphTile
.
Each road segment corresponds to two Vertices
, one for each Direction
.
A SegmentIndex
, therefore, refers to a road segment without specifying a Direction
,
whereas a VertexIndex
refers to a road segment but also specifies a Direction
along that
road segment.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SegmentIndex
fromVertex
(Vertex vertex) static SegmentIndex
fromVertexIndex
(VertexIndex index) Converts aVertexIndex
to the corresponding undirectedSegmentIndex
.toVertexIndex
(com.here.platform.location.inmemory.graph.Direction direction) int
value()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
-
Constructor Details
-
SegmentIndex
public SegmentIndex(int value)
-
-
Method Details
-
fromVertex
-
fromVertexIndex
Converts aVertexIndex
to the corresponding undirectedSegmentIndex
. -
value
public int value() -
toVertexIndex
-