public final class StringEncodedValue extends UnsignedIntEncodedValue
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, toStringpublic 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 UnsignedIntEncodedValuepublic int getVersion()
EncodedValuegetVersion in interface EncodedValuegetVersion in class UnsignedIntEncodedValueCopyright © 2012–2021. All rights reserved.