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