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