Package com.graphhopper.routing.ev
Class StringEncodedValue
java.lang.Object
com.graphhopper.routing.ev.IntEncodedValueImpl
com.graphhopper.routing.ev.StringEncodedValue
- All Implemented Interfaces:
EncodedValue
,IntEncodedValue
This class holds a List of up to
maxValues
encountered Strings and stores
index+1 to indicate a string is set or 0 if no value is assigned- Author:
- Peter Karich, Thomas Butz
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.graphhopper.routing.ev.EncodedValue
EncodedValue.InitializerConfig
-
Constructor Summary
ConstructorsConstructorDescriptionStringEncodedValue
(String name, int expectedValueCount) StringEncodedValue
(String name, int expectedValueCount, boolean storeTwoDirections) StringEncodedValue
(String name, int bits, List<String> values, boolean storeTwoDirections) -
Method Summary
Methods inherited from class com.graphhopper.routing.ev.IntEncodedValueImpl
getInt, getMaxOrMaxStorableInt, getMaxStorableInt, getMinStorableInt, getName, init, isStoreTwoDirections, setInt, toString
-
Constructor Details
-
StringEncodedValue
-
StringEncodedValue
-
StringEncodedValue
-
-
Method Details
-
setString
-
getString
-
indexOf
- Parameters:
value
- the String to retrieve the index- Returns:
- the non-zero index of the String or 0 if it couldn't be found
-
getValues
- Returns:
- an unmodifiable List of the current values
-