public class ByteShortImmutablePair extends java.lang.Object implements ByteShortPair
EMPTY| Constructor and Description |
|---|
ByteShortImmutablePair()
Default Constructor
|
ByteShortImmutablePair(byte key,
short value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
byte |
getByteKey() |
short |
getShortValue() |
int |
hashCode() |
ByteShortPair |
set(byte key,
short value)
Sets key and value of the Pair
|
ByteShortPair |
setByteKey(byte key)
Sets the Key of the Pair.
|
ByteShortPair |
setShortValue(short value)
Sets the Value of the Pair.
|
ByteShortPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic ByteShortImmutablePair()
public ByteShortImmutablePair(byte key,
short value)
key - the key of the Pairvalue - the value of the Pairpublic ByteShortPair setByteKey(byte key)
ByteShortPairsetByteKey in interface ByteShortPairkey - the key that should be set.public byte getByteKey()
getByteKey in interface ByteShortPairpublic ByteShortPair setShortValue(short value)
ByteShortPairsetShortValue in interface ByteShortPairvalue - the value that should be set.public short getShortValue()
getShortValue in interface ByteShortPairpublic ByteShortPair set(byte key, short value)
ByteShortPairset in interface ByteShortPairkey - the key that should be set.value - the value that should be set.public ByteShortPair shallowCopy()
ByteShortPairshallowCopy in interface ByteShortPairpublic 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