V - the type of elements maintained by this Collectionpublic class DoubleObjectImmutablePair<V> extends java.lang.Object implements DoubleObjectPair<V>
EMPTY| Constructor and Description |
|---|
DoubleObjectImmutablePair()
Default Constructor
|
DoubleObjectImmutablePair(double key,
V value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
double |
getDoubleKey() |
V |
getValue() |
int |
hashCode() |
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.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic DoubleObjectImmutablePair()
public DoubleObjectImmutablePair(double key,
V value)
key - the key of the Pairvalue - the value of the Pairpublic DoubleObjectPair<V> setDoubleKey(double key)
DoubleObjectPairsetDoubleKey in interface DoubleObjectPair<V>key - the key that should be set.public double getDoubleKey()
getDoubleKey in interface DoubleObjectPair<V>public DoubleObjectPair<V> setValue(V value)
DoubleObjectPairsetValue in interface DoubleObjectPair<V>value - the value that should be set.public V getValue()
getValue in interface DoubleObjectPair<V>public DoubleObjectPair<V> set(double key, V value)
DoubleObjectPairset in interface DoubleObjectPair<V>key - the key that should be set.value - the value that should be set.public DoubleObjectPair<V> shallowCopy()
DoubleObjectPairshallowCopy in interface DoubleObjectPair<V>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