Package com.graphhopper.routing.ev
Class EnumEncodedValue<E extends Enum>
java.lang.Object
com.graphhopper.routing.ev.IntEncodedValueImpl
com.graphhopper.routing.ev.EnumEncodedValue<E>
- All Implemented Interfaces:
EncodedValue
,IntEncodedValue
This class allows to store distinct values via an enum. I.e. it stores just the indices
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.graphhopper.routing.ev.EncodedValue
EncodedValue.InitializerConfig
-
Constructor Summary
ConstructorsConstructorDescriptionEnumEncodedValue
(String name, Class<E> enumType) EnumEncodedValue
(String name, Class<E> enumType, boolean storeTwoDirections) -
Method Summary
Modifier and TypeMethodDescriptionfinal E
getEnum
(boolean reverse, int edgeId, EdgeIntAccess edgeIntAccess) E[]
final void
setEnum
(boolean reverse, int edgeId, EdgeIntAccess edgeIntAccess, E value) Methods inherited from class com.graphhopper.routing.ev.IntEncodedValueImpl
getInt, getMaxOrMaxStorableInt, getMaxStorableInt, getMinStorableInt, getName, init, isStoreTwoDirections, setInt, toString
-
Constructor Details
-
EnumEncodedValue
-
EnumEncodedValue
-
-
Method Details
-
getEnumType
-
getValues
-
setEnum
-
getEnum
-