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