public class FloatDoubleImmutablePair extends java.lang.Object implements FloatDoublePair
EMPTY| Constructor and Description |
|---|
FloatDoubleImmutablePair()
Default Constructor
|
FloatDoubleImmutablePair(float key,
double value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
double |
getDoubleValue() |
float |
getFloatKey() |
int |
hashCode() |
FloatDoublePair |
set(float key,
double value)
Sets key and value of the Pair
|
FloatDoublePair |
setDoubleValue(double value)
Sets the Value of the Pair.
|
FloatDoublePair |
setFloatKey(float key)
Sets the Key of the Pair.
|
FloatDoublePair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic FloatDoubleImmutablePair()
public FloatDoubleImmutablePair(float key,
double value)
key - the key of the Pairvalue - the value of the Pairpublic FloatDoublePair setFloatKey(float key)
FloatDoublePairsetFloatKey in interface FloatDoublePairkey - the key that should be set.public float getFloatKey()
getFloatKey in interface FloatDoublePairpublic FloatDoublePair setDoubleValue(double value)
FloatDoublePairsetDoubleValue in interface FloatDoublePairvalue - the value that should be set.public double getDoubleValue()
getDoubleValue in interface FloatDoublePairpublic FloatDoublePair set(float key, double value)
FloatDoublePairset in interface FloatDoublePairkey - the key that should be set.value - the value that should be set.public FloatDoublePair shallowCopy()
FloatDoublePairshallowCopy in interface FloatDoublePairpublic 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