public class DoubleIntMutablePair extends java.lang.Object implements DoubleIntPair
EMPTY| Constructor and Description |
|---|
DoubleIntMutablePair()
Default Constructor
|
DoubleIntMutablePair(double key,
int value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
double |
getDoubleKey() |
int |
getIntValue() |
int |
hashCode() |
DoubleIntPair |
set(double key,
int value)
Sets key and value of the Pair
|
DoubleIntPair |
setDoubleKey(double key)
Sets the Key of the Pair.
|
DoubleIntPair |
setIntValue(int value)
Sets the Value of the Pair.
|
DoubleIntPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic DoubleIntMutablePair()
public DoubleIntMutablePair(double key,
int value)
key - the key of the Pairvalue - the value of the Pairpublic DoubleIntPair setDoubleKey(double key)
DoubleIntPairsetDoubleKey in interface DoubleIntPairkey - the key that should be set.public double getDoubleKey()
getDoubleKey in interface DoubleIntPairpublic DoubleIntPair setIntValue(int value)
DoubleIntPairsetIntValue in interface DoubleIntPairvalue - the value that should be set.public int getIntValue()
getIntValue in interface DoubleIntPairpublic DoubleIntPair set(double key, int value)
DoubleIntPairset in interface DoubleIntPairkey - the key that should be set.value - the value that should be set.public DoubleIntPair shallowCopy()
DoubleIntPairshallowCopy in interface DoubleIntPairpublic 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