public class LongDoubleImmutablePair extends java.lang.Object implements LongDoublePair
EMPTY| Constructor and Description |
|---|
LongDoubleImmutablePair()
Default Constructor
|
LongDoubleImmutablePair(long key,
double value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
double |
getDoubleValue() |
long |
getLongKey() |
int |
hashCode() |
LongDoublePair |
set(long key,
double value)
Sets key and value of the Pair
|
LongDoublePair |
setDoubleValue(double value)
Sets the Value of the Pair.
|
LongDoublePair |
setLongKey(long key)
Sets the Key of the Pair.
|
LongDoublePair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic LongDoubleImmutablePair()
public LongDoubleImmutablePair(long key,
double value)
key - the key of the Pairvalue - the value of the Pairpublic LongDoublePair setLongKey(long key)
LongDoublePairsetLongKey in interface LongDoublePairkey - the key that should be set.public long getLongKey()
getLongKey in interface LongDoublePairpublic LongDoublePair setDoubleValue(double value)
LongDoublePairsetDoubleValue in interface LongDoublePairvalue - the value that should be set.public double getDoubleValue()
getDoubleValue in interface LongDoublePairpublic LongDoublePair set(long key, double value)
LongDoublePairset in interface LongDoublePairkey - the key that should be set.value - the value that should be set.public LongDoublePair shallowCopy()
LongDoublePairshallowCopy in interface LongDoublePairpublic 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