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