public class ShortFloatMutablePair extends java.lang.Object implements ShortFloatPair
EMPTY| Constructor and Description |
|---|
ShortFloatMutablePair()
Default Constructor
|
ShortFloatMutablePair(short key,
float value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
float |
getFloatValue() |
short |
getShortKey() |
int |
hashCode() |
ShortFloatPair |
set(short key,
float value)
Sets key and value of the Pair
|
ShortFloatPair |
setFloatValue(float value)
Sets the Value of the Pair.
|
ShortFloatPair |
setShortKey(short key)
Sets the Key of the Pair.
|
ShortFloatPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic ShortFloatMutablePair()
public ShortFloatMutablePair(short key,
float value)
key - the key of the Pairvalue - the value of the Pairpublic ShortFloatPair setShortKey(short key)
ShortFloatPairsetShortKey in interface ShortFloatPairkey - the key that should be set.public short getShortKey()
getShortKey in interface ShortFloatPairpublic ShortFloatPair setFloatValue(float value)
ShortFloatPairsetFloatValue in interface ShortFloatPairvalue - the value that should be set.public float getFloatValue()
getFloatValue in interface ShortFloatPairpublic ShortFloatPair set(short key, float value)
ShortFloatPairset in interface ShortFloatPairkey - the key that should be set.value - the value that should be set.public ShortFloatPair shallowCopy()
ShortFloatPairshallowCopy in interface ShortFloatPairpublic 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