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