public class CharFloatMutablePair extends java.lang.Object implements CharFloatPair
EMPTY| Constructor and Description |
|---|
CharFloatMutablePair()
Default Constructor
|
CharFloatMutablePair(char key,
float value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
char |
getCharKey() |
float |
getFloatValue() |
int |
hashCode() |
CharFloatPair |
set(char key,
float value)
Sets key and value of the Pair
|
CharFloatPair |
setCharKey(char key)
Sets the Key of the Pair.
|
CharFloatPair |
setFloatValue(float value)
Sets the Value of the Pair.
|
CharFloatPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic CharFloatMutablePair()
public CharFloatMutablePair(char key,
float value)
key - the key of the Pairvalue - the value of the Pairpublic CharFloatPair setCharKey(char key)
CharFloatPairsetCharKey in interface CharFloatPairkey - the key that should be set.public char getCharKey()
getCharKey in interface CharFloatPairpublic CharFloatPair setFloatValue(float value)
CharFloatPairsetFloatValue in interface CharFloatPairvalue - the value that should be set.public float getFloatValue()
getFloatValue in interface CharFloatPairpublic CharFloatPair set(char key, float value)
CharFloatPairset in interface CharFloatPairkey - the key that should be set.value - the value that should be set.public CharFloatPair shallowCopy()
CharFloatPairshallowCopy in interface CharFloatPairpublic 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