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