public interface LongEncodedValue extends EncodedValue
| 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.
|
long |
getValue()
Gets the long value.
|
int |
hashCode()
Returns a hashcode for this EncodedLongValue.
|
getValueTypelong getValue()
int hashCode()
long v = getValue();
int hashCode = (int)(v^(v>>>32));
hashCode in class java.lang.Objectboolean equals(@Nullable
java.lang.Object o)
equals in class java.lang.Objecto - The object to be compared for equality with this LongEncodedValueint compareTo(@Nonnull
EncodedValue o)
compareTo in interface java.lang.Comparable<EncodedValue>o - The EncodedValue to compare with this LongEncodedValue