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