public class DoubleCharMutablePair extends java.lang.Object implements DoubleCharPair
EMPTY| Constructor and Description |
|---|
DoubleCharMutablePair()
Default Constructor
|
DoubleCharMutablePair(double key,
char value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
char |
getCharValue() |
double |
getDoubleKey() |
int |
hashCode() |
DoubleCharPair |
set(double key,
char value)
Sets key and value of the Pair
|
DoubleCharPair |
setCharValue(char value)
Sets the Value of the Pair.
|
DoubleCharPair |
setDoubleKey(double key)
Sets the Key of the Pair.
|
DoubleCharPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic DoubleCharMutablePair()
public DoubleCharMutablePair(double key,
char value)
key - the key of the Pairvalue - the value of the Pairpublic DoubleCharPair setDoubleKey(double key)
DoubleCharPairsetDoubleKey in interface DoubleCharPairkey - the key that should be set.public double getDoubleKey()
getDoubleKey in interface DoubleCharPairpublic DoubleCharPair setCharValue(char value)
DoubleCharPairsetCharValue in interface DoubleCharPairvalue - the value that should be set.public char getCharValue()
getCharValue in interface DoubleCharPairpublic DoubleCharPair set(double key, char value)
DoubleCharPairset in interface DoubleCharPairkey - the key that should be set.value - the value that should be set.public DoubleCharPair shallowCopy()
DoubleCharPairshallowCopy in interface DoubleCharPairpublic 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