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