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