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