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