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