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