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