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