public final class StringEncodedValue extends IntEncodedValueImpl
maxValues
encountered Strings and stores
index+1 to indicate a string is set or 0 if no value is assignedEncodedValue.InitializerConfig
Constructor and Description |
---|
StringEncodedValue(String name,
int expectedValueCount) |
StringEncodedValue(String name,
int expectedValueCount,
boolean storeTwoDirections) |
StringEncodedValue(String name,
int bits,
List<String> values,
boolean storeTwoDirections) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getString(boolean reverse,
IntsRef ref) |
List<String> |
getValues() |
int |
getVersion()
The return value represents the state of this EncodedValue and it can be assumed that two JVMs return the
same version when the EncodedValue has the same state unlike the hashCode method.
|
int |
indexOf(String value) |
void |
setString(boolean reverse,
IntsRef ref,
String value) |
getInt, getMaxInt, getName, hashCode, init, isStoreTwoDirections, setInt, toString
public StringEncodedValue(String name, int expectedValueCount)
public StringEncodedValue(String name, int expectedValueCount, boolean storeTwoDirections)
public int indexOf(String value)
value
- the String to retrieve the indexpublic boolean equals(Object obj)
equals
in class IntEncodedValueImpl
public int getVersion()
EncodedValue
getVersion
in interface EncodedValue
getVersion
in class IntEncodedValueImpl
Copyright © 2012–2022. All rights reserved.