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