T - the keyType of elements maintained by this Collectionpublic class ObjectDoubleImmutablePair<T> extends java.lang.Object implements ObjectDoublePair<T>
EMPTY| Constructor and Description |
|---|
ObjectDoubleImmutablePair()
Default Constructor
|
ObjectDoubleImmutablePair(T key,
double value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
double |
getDoubleValue() |
T |
getKey() |
int |
hashCode() |
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.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic ObjectDoubleImmutablePair()
public ObjectDoubleImmutablePair(T key, double value)
key - the key of the Pairvalue - the value of the Pairpublic ObjectDoublePair<T> setKey(T key)
ObjectDoublePairsetKey in interface ObjectDoublePair<T>key - the key that should be set.public T getKey()
getKey in interface ObjectDoublePair<T>public ObjectDoublePair<T> setDoubleValue(double value)
ObjectDoublePairsetDoubleValue in interface ObjectDoublePair<T>value - the value that should be set.public double getDoubleValue()
getDoubleValue in interface ObjectDoublePair<T>public ObjectDoublePair<T> set(T key, double value)
ObjectDoublePairset in interface ObjectDoublePair<T>key - the key that should be set.value - the value that should be set.public ObjectDoublePair<T> shallowCopy()
ObjectDoublePairshallowCopy in interface ObjectDoublePair<T>public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object