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