public class BooleanDoubleImmutablePair extends java.lang.Object implements BooleanDoublePair
EMPTY| Constructor and Description |
|---|
BooleanDoubleImmutablePair()
Default Constructor
|
BooleanDoubleImmutablePair(boolean key,
double value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
getBooleanKey() |
double |
getDoubleValue() |
int |
hashCode() |
BooleanDoublePair |
set(boolean key,
double value)
Sets key and value of the Pair
|
BooleanDoublePair |
setBooleanKey(boolean key)
Sets the Key of the Pair.
|
BooleanDoublePair |
setDoubleValue(double value)
Sets the Value of the Pair.
|
BooleanDoublePair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic BooleanDoubleImmutablePair()
public BooleanDoubleImmutablePair(boolean key,
double value)
key - the key of the Pairvalue - the value of the Pairpublic BooleanDoublePair setBooleanKey(boolean key)
BooleanDoublePairsetBooleanKey in interface BooleanDoublePairkey - the key that should be set.public boolean getBooleanKey()
getBooleanKey in interface BooleanDoublePairpublic BooleanDoublePair setDoubleValue(double value)
BooleanDoublePairsetDoubleValue in interface BooleanDoublePairvalue - the value that should be set.public double getDoubleValue()
getDoubleValue in interface BooleanDoublePairpublic BooleanDoublePair set(boolean key, double value)
BooleanDoublePairset in interface BooleanDoublePairkey - the key that should be set.value - the value that should be set.public BooleanDoublePair shallowCopy()
BooleanDoublePairshallowCopy in interface BooleanDoublePairpublic 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