Class ArrayEdgeIntAccess

java.lang.Object
com.graphhopper.routing.ev.ArrayEdgeIntAccess
All Implemented Interfaces:
EdgeIntAccess

public class ArrayEdgeIntAccess extends Object implements EdgeIntAccess
  • Constructor Details

    • ArrayEdgeIntAccess

      public ArrayEdgeIntAccess(int intsPerEdge)
  • Method Details

    • createFromBytes

      public static ArrayEdgeIntAccess createFromBytes(int bytes)
      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 interface EdgeIntAccess
    • 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 interface EdgeIntAccess