public abstract class BaseLongEncodedValue extends java.lang.Object implements LongEncodedValue
| Constructor and Description |
|---|
BaseLongEncodedValue() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(EncodedValue o)
Compare this LongEncodedValue to another EncodedValue.
|
boolean |
equals(java.lang.Object o)
Compares this LongEncodedValue to another LongEncodedValue for equality.
|
int |
getValueType()
Returns the type of this encoded value.
|
int |
hashCode()
Returns a hashcode for this EncodedLongValue.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetValuepublic int hashCode()
LongEncodedValue
long v = getValue();
int hashCode = (int)(v^(v>>>32));
hashCode in interface LongEncodedValuehashCode in class java.lang.Objectpublic boolean equals(@Nullable
java.lang.Object o)
LongEncodedValueequals in interface LongEncodedValueequals in class java.lang.Objecto - The object to be compared for equality with this LongEncodedValuepublic int compareTo(@Nonnull
EncodedValue o)
LongEncodedValuecompareTo in interface java.lang.Comparable<EncodedValue>compareTo in interface LongEncodedValueo - The EncodedValue to compare with this LongEncodedValuepublic int getValueType()
EncodedValuegetValueType in interface EncodedValue