public class FloatShortImmutablePair extends java.lang.Object implements FloatShortPair
EMPTY| Constructor and Description |
|---|
FloatShortImmutablePair()
Default Constructor
|
FloatShortImmutablePair(float key,
short value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
float |
getFloatKey() |
short |
getShortValue() |
int |
hashCode() |
FloatShortPair |
set(float key,
short value)
Sets key and value of the Pair
|
FloatShortPair |
setFloatKey(float key)
Sets the Key of the Pair.
|
FloatShortPair |
setShortValue(short value)
Sets the Value of the Pair.
|
FloatShortPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic FloatShortImmutablePair()
public FloatShortImmutablePair(float key,
short value)
key - the key of the Pairvalue - the value of the Pairpublic FloatShortPair setFloatKey(float key)
FloatShortPairsetFloatKey in interface FloatShortPairkey - the key that should be set.public float getFloatKey()
getFloatKey in interface FloatShortPairpublic FloatShortPair setShortValue(short value)
FloatShortPairsetShortValue in interface FloatShortPairvalue - the value that should be set.public short getShortValue()
getShortValue in interface FloatShortPairpublic FloatShortPair set(float key, short value)
FloatShortPairset in interface FloatShortPairkey - the key that should be set.value - the value that should be set.public FloatShortPair shallowCopy()
FloatShortPairshallowCopy in interface FloatShortPairpublic 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