public class DoubleByteImmutablePair extends java.lang.Object implements DoubleBytePair
EMPTY| Constructor and Description |
|---|
DoubleByteImmutablePair()
Default Constructor
|
DoubleByteImmutablePair(double key,
byte value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
byte |
getByteValue() |
double |
getDoubleKey() |
int |
hashCode() |
DoubleBytePair |
set(double key,
byte value)
Sets key and value of the Pair
|
DoubleBytePair |
setByteValue(byte value)
Sets the Value of the Pair.
|
DoubleBytePair |
setDoubleKey(double key)
Sets the Key of the Pair.
|
DoubleBytePair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic DoubleByteImmutablePair()
public DoubleByteImmutablePair(double key,
byte value)
key - the key of the Pairvalue - the value of the Pairpublic DoubleBytePair setDoubleKey(double key)
DoubleBytePairsetDoubleKey in interface DoubleBytePairkey - the key that should be set.public double getDoubleKey()
getDoubleKey in interface DoubleBytePairpublic DoubleBytePair setByteValue(byte value)
DoubleBytePairsetByteValue in interface DoubleBytePairvalue - the value that should be set.public byte getByteValue()
getByteValue in interface DoubleBytePairpublic DoubleBytePair set(double key, byte value)
DoubleBytePairset in interface DoubleBytePairkey - the key that should be set.value - the value that should be set.public DoubleBytePair shallowCopy()
DoubleBytePairshallowCopy in interface DoubleBytePairpublic 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