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