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 ArrayEdgeIntAccesscreateFromBytes(int bytes) Ensures that the underlying storage has enough integers reserved for the specified bytes.intgetInt(int edgeId, int index) Gets the int value at the given index for the given edgeIdvoidsetInt(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:EdgeIntAccessGets the int value at the given index for the given edgeId- Specified by:
getIntin interfaceEdgeIntAccess
-
setInt
public void setInt(int edgeId, int index, int value) Description copied from interface:EdgeIntAccessSets the int value at the given index for the given edgeId- Specified by:
setIntin interfaceEdgeIntAccess
-