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