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