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