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