public class CharDoubleMutablePair extends java.lang.Object implements CharDoublePair
EMPTY| Constructor and Description |
|---|
CharDoubleMutablePair()
Default Constructor
|
CharDoubleMutablePair(char key,
double value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
char |
getCharKey() |
double |
getDoubleValue() |
int |
hashCode() |
CharDoublePair |
set(char key,
double value)
Sets key and value of the Pair
|
CharDoublePair |
setCharKey(char key)
Sets the Key of the Pair.
|
CharDoublePair |
setDoubleValue(double value)
Sets the Value of the Pair.
|
CharDoublePair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic CharDoubleMutablePair()
public CharDoubleMutablePair(char key,
double value)
key - the key of the Pairvalue - the value of the Pairpublic CharDoublePair setCharKey(char key)
CharDoublePairsetCharKey in interface CharDoublePairkey - the key that should be set.public char getCharKey()
getCharKey in interface CharDoublePairpublic CharDoublePair setDoubleValue(double value)
CharDoublePairsetDoubleValue in interface CharDoublePairvalue - the value that should be set.public double getDoubleValue()
getDoubleValue in interface CharDoublePairpublic CharDoublePair set(char key, double value)
CharDoublePairset in interface CharDoublePairkey - the key that should be set.value - the value that should be set.public CharDoublePair shallowCopy()
CharDoublePairshallowCopy in interface CharDoublePairpublic 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