public class DoubleDoubleImmutablePair extends java.lang.Object implements DoubleDoublePair
EMPTY| Constructor and Description |
|---|
DoubleDoubleImmutablePair()
Default Constructor
|
DoubleDoubleImmutablePair(double key,
double value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
double |
getDoubleKey() |
double |
getDoubleValue() |
int |
hashCode() |
DoubleDoublePair |
set(double key,
double value)
Sets key and value of the Pair
|
DoubleDoublePair |
setDoubleKey(double key)
Sets the Key of the Pair.
|
DoubleDoublePair |
setDoubleValue(double value)
Sets the Value of the Pair.
|
DoubleDoublePair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic DoubleDoubleImmutablePair()
public DoubleDoubleImmutablePair(double key,
double value)
key - the key of the Pairvalue - the value of the Pairpublic DoubleDoublePair setDoubleKey(double key)
DoubleDoublePairsetDoubleKey in interface DoubleDoublePairkey - the key that should be set.public double getDoubleKey()
getDoubleKey in interface DoubleDoublePairpublic DoubleDoublePair setDoubleValue(double value)
DoubleDoublePairsetDoubleValue in interface DoubleDoublePairvalue - the value that should be set.public double getDoubleValue()
getDoubleValue in interface DoubleDoublePairpublic DoubleDoublePair set(double key, double value)
DoubleDoublePairset in interface DoubleDoublePairkey - the key that should be set.value - the value that should be set.public DoubleDoublePair shallowCopy()
DoubleDoublePairshallowCopy in interface DoubleDoublePairpublic 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