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