public class LongFloatImmutablePair extends java.lang.Object implements LongFloatPair
EMPTY| Constructor and Description |
|---|
LongFloatImmutablePair()
Default Constructor
|
LongFloatImmutablePair(long key,
float value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
float |
getFloatValue() |
long |
getLongKey() |
int |
hashCode() |
LongFloatPair |
set(long key,
float value)
Sets key and value of the Pair
|
LongFloatPair |
setFloatValue(float value)
Sets the Value of the Pair.
|
LongFloatPair |
setLongKey(long key)
Sets the Key of the Pair.
|
LongFloatPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic LongFloatImmutablePair()
public LongFloatImmutablePair(long key,
float value)
key - the key of the Pairvalue - the value of the Pairpublic LongFloatPair setLongKey(long key)
LongFloatPairsetLongKey in interface LongFloatPairkey - the key that should be set.public long getLongKey()
getLongKey in interface LongFloatPairpublic LongFloatPair setFloatValue(float value)
LongFloatPairsetFloatValue in interface LongFloatPairvalue - the value that should be set.public float getFloatValue()
getFloatValue in interface LongFloatPairpublic LongFloatPair set(long key, float value)
LongFloatPairset in interface LongFloatPairkey - the key that should be set.value - the value that should be set.public LongFloatPair shallowCopy()
LongFloatPairshallowCopy in interface LongFloatPairpublic 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