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