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