public class FloatCharImmutablePair extends java.lang.Object implements FloatCharPair
EMPTY| Constructor and Description |
|---|
FloatCharImmutablePair()
Default Constructor
|
FloatCharImmutablePair(float key,
char value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
char |
getCharValue() |
float |
getFloatKey() |
int |
hashCode() |
FloatCharPair |
set(float key,
char value)
Sets key and value of the Pair
|
FloatCharPair |
setCharValue(char value)
Sets the Value of the Pair.
|
FloatCharPair |
setFloatKey(float key)
Sets the Key of the Pair.
|
FloatCharPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic FloatCharImmutablePair()
public FloatCharImmutablePair(float key,
char value)
key - the key of the Pairvalue - the value of the Pairpublic FloatCharPair setFloatKey(float key)
FloatCharPairsetFloatKey in interface FloatCharPairkey - the key that should be set.public float getFloatKey()
getFloatKey in interface FloatCharPairpublic FloatCharPair setCharValue(char value)
FloatCharPairsetCharValue in interface FloatCharPairvalue - the value that should be set.public char getCharValue()
getCharValue in interface FloatCharPairpublic FloatCharPair set(float key, char value)
FloatCharPairset in interface FloatCharPairkey - the key that should be set.value - the value that should be set.public FloatCharPair shallowCopy()
FloatCharPairshallowCopy in interface FloatCharPairpublic 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