public interface CharDoublePair
| Modifier and Type | Field and Description |
|---|---|
static CharDoublePair |
EMPTY
Empty Reference for Immutable Pairs
|
| Modifier and Type | Method and Description |
|---|---|
char |
getCharKey() |
double |
getDoubleValue() |
static CharDoublePair |
mutable() |
static CharDoublePair |
mutable(char key,
double value) |
static CharDoublePair |
mutable(CharDoublePair pair) |
static CharDoublePair |
mutableKey(char key) |
static CharDoublePair |
mutableValue(double value) |
static CharDoublePair |
of() |
static CharDoublePair |
of(char key,
double value) |
static CharDoublePair |
of(CharDoublePair pair) |
static CharDoublePair |
ofKey(char key) |
static CharDoublePair |
ofValue(double value) |
CharDoublePair |
set(char key,
double value)
Sets key and value of the Pair
|
CharDoublePair |
setCharKey(char key)
Sets the Key of the Pair.
|
CharDoublePair |
setDoubleValue(double value)
Sets the Value of the Pair.
|
CharDoublePair |
shallowCopy()
Clones the Pair if it is mutable.
|
static final CharDoublePair EMPTY
static CharDoublePair of()
static CharDoublePair ofKey(char key)
key - the key that should be in the pairstatic CharDoublePair ofValue(double value)
value - the value that should be in the pairstatic CharDoublePair of(char key, double value)
key - the key that should be in the pairvalue - the value that should be in the pairstatic CharDoublePair of(CharDoublePair pair)
pair - the Pair that should be immutably copiedstatic CharDoublePair mutable()
static CharDoublePair mutableKey(char key)
key - the key that should be in the pairstatic CharDoublePair mutableValue(double value)
value - the value that should be in the pairstatic CharDoublePair mutable(char key, double value)
key - the key that should be in the pairvalue - the value that should be in the pairstatic CharDoublePair mutable(CharDoublePair pair)
pair - the Pair that should be copiedCharDoublePair setCharKey(char key)
key - the key that should be set.char getCharKey()
CharDoublePair setDoubleValue(double value)
value - the value that should be set.double getDoubleValue()
CharDoublePair set(char key, double value)
key - the key that should be set.value - the value that should be set.CharDoublePair shallowCopy()