V - the type of elements maintained by this Collectionpublic interface DoubleObjectPair<V>
| Modifier and Type | Field and Description |
|---|---|
static DoubleObjectPair<?> |
EMPTY
Empty Reference for Immutable Pairs
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDoubleKey() |
V |
getValue() |
static <V> DoubleObjectPair<V> |
mutable() |
static <V> DoubleObjectPair<V> |
mutable(DoubleObjectPair<V> pair) |
static <V> DoubleObjectPair<V> |
mutable(double key,
V value) |
static <V> DoubleObjectPair<V> |
mutableKey(double key) |
static <V> DoubleObjectPair<V> |
mutableValue(V value) |
static <V> DoubleObjectPair<V> |
of() |
static <V> DoubleObjectPair<V> |
of(DoubleObjectPair<V> pair) |
static <V> DoubleObjectPair<V> |
of(double key,
V value) |
static <V> DoubleObjectPair<V> |
ofKey(double key) |
static <V> DoubleObjectPair<V> |
ofValue(V value) |
DoubleObjectPair<V> |
set(double key,
V value)
Sets key and value of the Pair
|
DoubleObjectPair<V> |
setDoubleKey(double key)
Sets the Key of the Pair.
|
DoubleObjectPair<V> |
setValue(V value)
Sets the Value of the Pair.
|
DoubleObjectPair<V> |
shallowCopy()
Clones the Pair if it is mutable.
|
static final DoubleObjectPair<?> EMPTY
static <V> DoubleObjectPair<V> of()
V - the type of elements maintained by this Collectionstatic <V> DoubleObjectPair<V> ofKey(double key)
V - the type of elements maintained by this Collectionkey - the key that should be in the pairstatic <V> DoubleObjectPair<V> ofValue(V value)
V - the type of elements maintained by this Collectionvalue - the value that should be in the pairstatic <V> DoubleObjectPair<V> of(double key, V value)
V - the type of elements maintained by this Collectionkey - the key that should be in the pairvalue - the value that should be in the pairstatic <V> DoubleObjectPair<V> of(DoubleObjectPair<V> pair)
V - the type of elements maintained by this Collectionpair - the Pair that should be immutably copiedstatic <V> DoubleObjectPair<V> mutable()
V - the type of elements maintained by this Collectionstatic <V> DoubleObjectPair<V> mutableKey(double key)
V - the type of elements maintained by this Collectionkey - the key that should be in the pairstatic <V> DoubleObjectPair<V> mutableValue(V value)
V - the type of elements maintained by this Collectionvalue - the value that should be in the pairstatic <V> DoubleObjectPair<V> mutable(double key, V value)
V - the type of elements maintained by this Collectionkey - the key that should be in the pairvalue - the value that should be in the pairstatic <V> DoubleObjectPair<V> mutable(DoubleObjectPair<V> pair)
V - the type of elements maintained by this Collectionpair - the Pair that should be copiedDoubleObjectPair<V> setDoubleKey(double key)
key - the key that should be set.double getDoubleKey()
DoubleObjectPair<V> setValue(V value)
value - the value that should be set.V getValue()
DoubleObjectPair<V> set(double key, V value)
key - the key that should be set.value - the value that should be set.DoubleObjectPair<V> shallowCopy()