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