Package com.graphhopper.routing.ev
Class ArrayEdgeIntAccess
java.lang.Object
com.graphhopper.routing.ev.ArrayEdgeIntAccess
- All Implemented Interfaces:
EdgeIntAccess
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ArrayEdgeIntAccess
createFromBytes
(int bytes) Ensures that the underlying storage has enough integers reserved for the specified bytes.int
getInt
(int edgeId, int index) Gets the int value at the given index for the given edgeIdvoid
setInt
(int edgeId, int index, int value) Sets the int value at the given index for the given edgeId
-
Constructor Details
-
ArrayEdgeIntAccess
public ArrayEdgeIntAccess(int intsPerEdge)
-
-
Method Details
-
createFromBytes
Ensures that the underlying storage has enough integers reserved for the specified bytes. -
getInt
public int getInt(int edgeId, int index) Description copied from interface:EdgeIntAccess
Gets the int value at the given index for the given edgeId- Specified by:
getInt
in interfaceEdgeIntAccess
-
setInt
public void setInt(int edgeId, int index, int value) Description copied from interface:EdgeIntAccess
Sets the int value at the given index for the given edgeId- Specified by:
setInt
in interfaceEdgeIntAccess
-