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