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