public class DoubleLongMutablePair extends java.lang.Object implements DoubleLongPair
EMPTY| Constructor and Description |
|---|
DoubleLongMutablePair()
Default Constructor
|
DoubleLongMutablePair(double key,
long value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
double |
getDoubleKey() |
long |
getLongValue() |
int |
hashCode() |
DoubleLongPair |
set(double key,
long value)
Sets key and value of the Pair
|
DoubleLongPair |
setDoubleKey(double key)
Sets the Key of the Pair.
|
DoubleLongPair |
setLongValue(long value)
Sets the Value of the Pair.
|
DoubleLongPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic DoubleLongMutablePair()
public DoubleLongMutablePair(double key,
long value)
key - the key of the Pairvalue - the value of the Pairpublic DoubleLongPair setDoubleKey(double key)
DoubleLongPairsetDoubleKey in interface DoubleLongPairkey - the key that should be set.public double getDoubleKey()
getDoubleKey in interface DoubleLongPairpublic DoubleLongPair setLongValue(long value)
DoubleLongPairsetLongValue in interface DoubleLongPairvalue - the value that should be set.public long getLongValue()
getLongValue in interface DoubleLongPairpublic DoubleLongPair set(double key, long value)
DoubleLongPairset in interface DoubleLongPairkey - the key that should be set.value - the value that should be set.public DoubleLongPair shallowCopy()
DoubleLongPairshallowCopy in interface DoubleLongPairpublic 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