public class ShortDoubleMutablePair extends java.lang.Object implements ShortDoublePair
EMPTY| Constructor and Description |
|---|
ShortDoubleMutablePair()
Default Constructor
|
ShortDoubleMutablePair(short key,
double value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
double |
getDoubleValue() |
short |
getShortKey() |
int |
hashCode() |
ShortDoublePair |
set(short key,
double value)
Sets key and value of the Pair
|
ShortDoublePair |
setDoubleValue(double value)
Sets the Value of the Pair.
|
ShortDoublePair |
setShortKey(short key)
Sets the Key of the Pair.
|
ShortDoublePair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic ShortDoubleMutablePair()
public ShortDoubleMutablePair(short key,
double value)
key - the key of the Pairvalue - the value of the Pairpublic ShortDoublePair setShortKey(short key)
ShortDoublePairsetShortKey in interface ShortDoublePairkey - the key that should be set.public short getShortKey()
getShortKey in interface ShortDoublePairpublic ShortDoublePair setDoubleValue(double value)
ShortDoublePairsetDoubleValue in interface ShortDoublePairvalue - the value that should be set.public double getDoubleValue()
getDoubleValue in interface ShortDoublePairpublic ShortDoublePair set(short key, double value)
ShortDoublePairset in interface ShortDoublePairkey - the key that should be set.value - the value that should be set.public ShortDoublePair shallowCopy()
ShortDoublePairshallowCopy in interface ShortDoublePairpublic 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