public class IntDoubleMutablePair extends java.lang.Object implements IntDoublePair
EMPTY| Constructor and Description |
|---|
IntDoubleMutablePair()
Default Constructor
|
IntDoubleMutablePair(int key,
double value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
double |
getDoubleValue() |
int |
getIntKey() |
int |
hashCode() |
IntDoublePair |
set(int key,
double value)
Sets key and value of the Pair
|
IntDoublePair |
setDoubleValue(double value)
Sets the Value of the Pair.
|
IntDoublePair |
setIntKey(int key)
Sets the Key of the Pair.
|
IntDoublePair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic IntDoubleMutablePair()
public IntDoubleMutablePair(int key,
double value)
key - the key of the Pairvalue - the value of the Pairpublic IntDoublePair setIntKey(int key)
IntDoublePairsetIntKey in interface IntDoublePairkey - the key that should be set.public int getIntKey()
getIntKey in interface IntDoublePairpublic IntDoublePair setDoubleValue(double value)
IntDoublePairsetDoubleValue in interface IntDoublePairvalue - the value that should be set.public double getDoubleValue()
getDoubleValue in interface IntDoublePairpublic IntDoublePair set(int key, double value)
IntDoublePairset in interface IntDoublePairkey - the key that should be set.value - the value that should be set.public IntDoublePair shallowCopy()
IntDoublePairshallowCopy in interface IntDoublePairpublic 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