public class ByteLongMutablePair extends java.lang.Object implements ByteLongPair
EMPTY| Constructor and Description |
|---|
ByteLongMutablePair()
Default Constructor
|
ByteLongMutablePair(byte key,
long value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
byte |
getByteKey() |
long |
getLongValue() |
int |
hashCode() |
ByteLongPair |
set(byte key,
long value)
Sets key and value of the Pair
|
ByteLongPair |
setByteKey(byte key)
Sets the Key of the Pair.
|
ByteLongPair |
setLongValue(long value)
Sets the Value of the Pair.
|
ByteLongPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic ByteLongMutablePair()
public ByteLongMutablePair(byte key,
long value)
key - the key of the Pairvalue - the value of the Pairpublic ByteLongPair setByteKey(byte key)
ByteLongPairsetByteKey in interface ByteLongPairkey - the key that should be set.public byte getByteKey()
getByteKey in interface ByteLongPairpublic ByteLongPair setLongValue(long value)
ByteLongPairsetLongValue in interface ByteLongPairvalue - the value that should be set.public long getLongValue()
getLongValue in interface ByteLongPairpublic ByteLongPair set(byte key, long value)
ByteLongPairset in interface ByteLongPairkey - the key that should be set.value - the value that should be set.public ByteLongPair shallowCopy()
ByteLongPairshallowCopy in interface ByteLongPairpublic 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