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