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