public interface CharFloatPair
| Modifier and Type | Field and Description |
|---|---|
static CharFloatPair |
EMPTY
Empty Reference for Immutable Pairs
|
| Modifier and Type | Method and Description |
|---|---|
char |
getCharKey() |
float |
getFloatValue() |
static CharFloatPair |
mutable() |
static CharFloatPair |
mutable(char key,
float value) |
static CharFloatPair |
mutable(CharFloatPair pair) |
static CharFloatPair |
mutableKey(char key) |
static CharFloatPair |
mutableValue(float value) |
static CharFloatPair |
of() |
static CharFloatPair |
of(char key,
float value) |
static CharFloatPair |
of(CharFloatPair pair) |
static CharFloatPair |
ofKey(char key) |
static CharFloatPair |
ofValue(float value) |
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.
|
static final CharFloatPair EMPTY
static CharFloatPair of()
static CharFloatPair ofKey(char key)
key - the key that should be in the pairstatic CharFloatPair ofValue(float value)
value - the value that should be in the pairstatic CharFloatPair of(char key, float value)
key - the key that should be in the pairvalue - the value that should be in the pairstatic CharFloatPair of(CharFloatPair pair)
pair - the Pair that should be immutably copiedstatic CharFloatPair mutable()
static CharFloatPair mutableKey(char key)
key - the key that should be in the pairstatic CharFloatPair mutableValue(float value)
value - the value that should be in the pairstatic CharFloatPair mutable(char key, float value)
key - the key that should be in the pairvalue - the value that should be in the pairstatic CharFloatPair mutable(CharFloatPair pair)
pair - the Pair that should be copiedCharFloatPair setCharKey(char key)
key - the key that should be set.char getCharKey()
CharFloatPair setFloatValue(float value)
value - the value that should be set.float getFloatValue()
CharFloatPair set(char key, float value)
key - the key that should be set.value - the value that should be set.CharFloatPair shallowCopy()