public class ByteDoubleMutablePair extends java.lang.Object implements ByteDoublePair
EMPTY| Constructor and Description |
|---|
ByteDoubleMutablePair()
Default Constructor
|
ByteDoubleMutablePair(byte key,
double value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
byte |
getByteKey() |
double |
getDoubleValue() |
int |
hashCode() |
ByteDoublePair |
set(byte key,
double value)
Sets key and value of the Pair
|
ByteDoublePair |
setByteKey(byte key)
Sets the Key of the Pair.
|
ByteDoublePair |
setDoubleValue(double value)
Sets the Value of the Pair.
|
ByteDoublePair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic ByteDoubleMutablePair()
public ByteDoubleMutablePair(byte key,
double value)
key - the key of the Pairvalue - the value of the Pairpublic ByteDoublePair setByteKey(byte key)
ByteDoublePairsetByteKey in interface ByteDoublePairkey - the key that should be set.public byte getByteKey()
getByteKey in interface ByteDoublePairpublic ByteDoublePair setDoubleValue(double value)
ByteDoublePairsetDoubleValue in interface ByteDoublePairvalue - the value that should be set.public double getDoubleValue()
getDoubleValue in interface ByteDoublePairpublic ByteDoublePair set(byte key, double value)
ByteDoublePairset in interface ByteDoublePairkey - the key that should be set.value - the value that should be set.public ByteDoublePair shallowCopy()
ByteDoublePairshallowCopy in interface ByteDoublePairpublic 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