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