public class ShortByteMutablePair extends java.lang.Object implements ShortBytePair
EMPTY| Constructor and Description |
|---|
ShortByteMutablePair()
Default Constructor
|
ShortByteMutablePair(short key,
byte value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
byte |
getByteValue() |
short |
getShortKey() |
int |
hashCode() |
ShortBytePair |
set(short key,
byte value)
Sets key and value of the Pair
|
ShortBytePair |
setByteValue(byte value)
Sets the Value of the Pair.
|
ShortBytePair |
setShortKey(short key)
Sets the Key of the Pair.
|
ShortBytePair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic ShortByteMutablePair()
public ShortByteMutablePair(short key,
byte value)
key - the key of the Pairvalue - the value of the Pairpublic ShortBytePair setShortKey(short key)
ShortBytePairsetShortKey in interface ShortBytePairkey - the key that should be set.public short getShortKey()
getShortKey in interface ShortBytePairpublic ShortBytePair setByteValue(byte value)
ShortBytePairsetByteValue in interface ShortBytePairvalue - the value that should be set.public byte getByteValue()
getByteValue in interface ShortBytePairpublic ShortBytePair set(short key, byte value)
ShortBytePairset in interface ShortBytePairkey - the key that should be set.value - the value that should be set.public ShortBytePair shallowCopy()
ShortBytePairshallowCopy in interface ShortBytePairpublic 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