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