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