Package com.graphhopper.routing.ev
Interface EncodedValue
- All Known Subinterfaces:
BooleanEncodedValue
,DecimalEncodedValue
,IntEncodedValue
- All Known Implementing Classes:
DecimalEncodedValueImpl
,EnumEncodedValue
,ExternalBooleanEncodedValue
,IntEncodedValueImpl
,SimpleBooleanEncodedValue
,StringEncodedValue
public interface EncodedValue
This interface defines how to store and read values from a list of integers
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetName()
This method returns the hierarchical name like vehicle.type of this EncodedValueint
This method sets the dataIndex and shift of this EncodedValue object and potentially changes the submitted init object afterwards via calling nextboolean
-
Method Details
-
init
This method sets the dataIndex and shift of this EncodedValue object and potentially changes the submitted init object afterwards via calling next- Returns:
- used bits
- See Also:
-
EncodedValue.InitializerConfig.next(int)
-
getName
String getName()This method returns the hierarchical name like vehicle.type of this EncodedValue -
isStoreTwoDirections
boolean isStoreTwoDirections()- Returns:
- true if this EncodedValue can store a different value for its reverse direction
-