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