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