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