public abstract class BaseFloatEncodedValue extends java.lang.Object implements FloatEncodedValue
| Constructor and Description |
|---|
BaseFloatEncodedValue() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(EncodedValue o)
Compare this FloatEncodedValue to another EncodedValue.
|
boolean |
equals(java.lang.Object o)
Compares this FloatEncodedValue to another FloatEncodedValue for equality.
|
int |
getValueType()
Returns the type of this encoded value.
|
int |
hashCode()
Returns a hashcode for this EncodedFloatValue.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetValuepublic int hashCode()
FloatEncodedValue
int hashCode = Float.floatToRawIntBits(getValue());
Note: This is slightly different than the definition of Float.hashCode(). This uses floatToRawIntBits()
instead of floatToIntBits(), in order to preserve as much information as possible.hashCode in interface FloatEncodedValuehashCode in class java.lang.Objectpublic boolean equals(@Nullable
java.lang.Object o)
FloatEncodedValueequals in interface FloatEncodedValueequals in class java.lang.Objecto - The object to be compared for equality with this FloatEncodedValuepublic int compareTo(@Nonnull
EncodedValue o)
FloatEncodedValuecompareTo in interface java.lang.Comparable<EncodedValue>compareTo in interface FloatEncodedValueo - The EncodedValue to compare with this FloatEncodedValuepublic int getValueType()
EncodedValuegetValueType in interface EncodedValue