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