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