public class DoubleBooleanMutablePair extends java.lang.Object implements DoubleBooleanPair
EMPTY| Constructor and Description |
|---|
DoubleBooleanMutablePair()
Default Constructor
|
DoubleBooleanMutablePair(double key,
boolean value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
getBooleanValue() |
double |
getDoubleKey() |
int |
hashCode() |
DoubleBooleanPair |
set(double key,
boolean value)
Sets key and value of the Pair
|
DoubleBooleanPair |
setBooleanValue(boolean value)
Sets the Value of the Pair.
|
DoubleBooleanPair |
setDoubleKey(double key)
Sets the Key of the Pair.
|
DoubleBooleanPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic DoubleBooleanMutablePair()
public DoubleBooleanMutablePair(double key,
boolean value)
key - the key of the Pairvalue - the value of the Pairpublic DoubleBooleanPair setDoubleKey(double key)
DoubleBooleanPairsetDoubleKey in interface DoubleBooleanPairkey - the key that should be set.public double getDoubleKey()
getDoubleKey in interface DoubleBooleanPairpublic DoubleBooleanPair setBooleanValue(boolean value)
DoubleBooleanPairsetBooleanValue in interface DoubleBooleanPairvalue - the value that should be set.public boolean getBooleanValue()
getBooleanValue in interface DoubleBooleanPairpublic DoubleBooleanPair set(double key, boolean value)
DoubleBooleanPairset in interface DoubleBooleanPairkey - the key that should be set.value - the value that should be set.public DoubleBooleanPair shallowCopy()
DoubleBooleanPairshallowCopy in interface DoubleBooleanPairpublic 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