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