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