public final class EnumEncodedValue<E extends Enum> extends UnsignedIntEncodedValue
EncodedValue.InitializerConfig
bwdDataIndex, fwdDataIndex
Constructor and Description |
---|
EnumEncodedValue(String name,
Class<E> enumType) |
EnumEncodedValue(String name,
Class<E> enumType,
boolean storeTwoDirections) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
E |
getEnum(boolean reverse,
IntsRef ref) |
E[] |
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.
|
void |
setEnum(boolean reverse,
IntsRef ref,
E value) |
getInt, getMaxInt, getName, hashCode, init, isStoreTwoDirections, setInt, toString
public E[] getValues()
public boolean equals(Object o)
equals
in class UnsignedIntEncodedValue
public int getVersion()
EncodedValue
getVersion
in interface EncodedValue
getVersion
in class UnsignedIntEncodedValue
Copyright © 2012–2020. All rights reserved.