public class DoubleFloatImmutablePair extends java.lang.Object implements DoubleFloatPair
EMPTY| Constructor and Description |
|---|
DoubleFloatImmutablePair()
Default Constructor
|
DoubleFloatImmutablePair(double key,
float value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
double |
getDoubleKey() |
float |
getFloatValue() |
int |
hashCode() |
DoubleFloatPair |
set(double key,
float value)
Sets key and value of the Pair
|
DoubleFloatPair |
setDoubleKey(double key)
Sets the Key of the Pair.
|
DoubleFloatPair |
setFloatValue(float value)
Sets the Value of the Pair.
|
DoubleFloatPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic DoubleFloatImmutablePair()
public DoubleFloatImmutablePair(double key,
float value)
key - the key of the Pairvalue - the value of the Pairpublic DoubleFloatPair setDoubleKey(double key)
DoubleFloatPairsetDoubleKey in interface DoubleFloatPairkey - the key that should be set.public double getDoubleKey()
getDoubleKey in interface DoubleFloatPairpublic DoubleFloatPair setFloatValue(float value)
DoubleFloatPairsetFloatValue in interface DoubleFloatPairvalue - the value that should be set.public float getFloatValue()
getFloatValue in interface DoubleFloatPairpublic DoubleFloatPair set(double key, float value)
DoubleFloatPairset in interface DoubleFloatPairkey - the key that should be set.value - the value that should be set.public DoubleFloatPair shallowCopy()
DoubleFloatPairshallowCopy in interface DoubleFloatPairpublic 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