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