public class FloatLongImmutablePair extends java.lang.Object implements FloatLongPair
EMPTY| Constructor and Description |
|---|
FloatLongImmutablePair()
Default Constructor
|
FloatLongImmutablePair(float key,
long value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
float |
getFloatKey() |
long |
getLongValue() |
int |
hashCode() |
FloatLongPair |
set(float key,
long value)
Sets key and value of the Pair
|
FloatLongPair |
setFloatKey(float key)
Sets the Key of the Pair.
|
FloatLongPair |
setLongValue(long value)
Sets the Value of the Pair.
|
FloatLongPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic FloatLongImmutablePair()
public FloatLongImmutablePair(float key,
long value)
key - the key of the Pairvalue - the value of the Pairpublic FloatLongPair setFloatKey(float key)
FloatLongPairsetFloatKey in interface FloatLongPairkey - the key that should be set.public float getFloatKey()
getFloatKey in interface FloatLongPairpublic FloatLongPair setLongValue(long value)
FloatLongPairsetLongValue in interface FloatLongPairvalue - the value that should be set.public long getLongValue()
getLongValue in interface FloatLongPairpublic FloatLongPair set(float key, long value)
FloatLongPairset in interface FloatLongPairkey - the key that should be set.value - the value that should be set.public FloatLongPair shallowCopy()
FloatLongPairshallowCopy in interface FloatLongPairpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object