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