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