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