public class DoubleShortImmutablePair extends java.lang.Object implements DoubleShortPair
EMPTY| Constructor and Description |
|---|
DoubleShortImmutablePair()
Default Constructor
|
DoubleShortImmutablePair(double key,
short value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
double |
getDoubleKey() |
short |
getShortValue() |
int |
hashCode() |
DoubleShortPair |
set(double key,
short value)
Sets key and value of the Pair
|
DoubleShortPair |
setDoubleKey(double key)
Sets the Key of the Pair.
|
DoubleShortPair |
setShortValue(short value)
Sets the Value of the Pair.
|
DoubleShortPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic DoubleShortImmutablePair()
public DoubleShortImmutablePair(double key,
short value)
key - the key of the Pairvalue - the value of the Pairpublic DoubleShortPair setDoubleKey(double key)
DoubleShortPairsetDoubleKey in interface DoubleShortPairkey - the key that should be set.public double getDoubleKey()
getDoubleKey in interface DoubleShortPairpublic DoubleShortPair setShortValue(short value)
DoubleShortPairsetShortValue in interface DoubleShortPairvalue - the value that should be set.public short getShortValue()
getShortValue in interface DoubleShortPairpublic DoubleShortPair set(double key, short value)
DoubleShortPairset in interface DoubleShortPairkey - the key that should be set.value - the value that should be set.public DoubleShortPair shallowCopy()
DoubleShortPairshallowCopy in interface DoubleShortPairpublic 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