public class LongByteImmutablePair extends java.lang.Object implements LongBytePair
EMPTY| Constructor and Description |
|---|
LongByteImmutablePair()
Default Constructor
|
LongByteImmutablePair(long key,
byte value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
byte |
getByteValue() |
long |
getLongKey() |
int |
hashCode() |
LongBytePair |
set(long key,
byte value)
Sets key and value of the Pair
|
LongBytePair |
setByteValue(byte value)
Sets the Value of the Pair.
|
LongBytePair |
setLongKey(long key)
Sets the Key of the Pair.
|
LongBytePair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic LongByteImmutablePair()
public LongByteImmutablePair(long key,
byte value)
key - the key of the Pairvalue - the value of the Pairpublic LongBytePair setLongKey(long key)
LongBytePairsetLongKey in interface LongBytePairkey - the key that should be set.public long getLongKey()
getLongKey in interface LongBytePairpublic LongBytePair setByteValue(byte value)
LongBytePairsetByteValue in interface LongBytePairvalue - the value that should be set.public byte getByteValue()
getByteValue in interface LongBytePairpublic LongBytePair set(long key, byte value)
LongBytePairset in interface LongBytePairkey - the key that should be set.value - the value that should be set.public LongBytePair shallowCopy()
LongBytePairshallowCopy in interface LongBytePairpublic 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