public class ByteByteImmutablePair extends java.lang.Object implements ByteBytePair
EMPTY| Constructor and Description |
|---|
ByteByteImmutablePair()
Default Constructor
|
ByteByteImmutablePair(byte key,
byte value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
byte |
getByteKey() |
byte |
getByteValue() |
int |
hashCode() |
ByteBytePair |
set(byte key,
byte value)
Sets key and value of the Pair
|
ByteBytePair |
setByteKey(byte key)
Sets the Key of the Pair.
|
ByteBytePair |
setByteValue(byte value)
Sets the Value of the Pair.
|
ByteBytePair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic ByteByteImmutablePair()
public ByteByteImmutablePair(byte key,
byte value)
key - the key of the Pairvalue - the value of the Pairpublic ByteBytePair setByteKey(byte key)
ByteBytePairsetByteKey in interface ByteBytePairkey - the key that should be set.public byte getByteKey()
getByteKey in interface ByteBytePairpublic ByteBytePair setByteValue(byte value)
ByteBytePairsetByteValue in interface ByteBytePairvalue - the value that should be set.public byte getByteValue()
getByteValue in interface ByteBytePairpublic ByteBytePair set(byte key, byte value)
ByteBytePairset in interface ByteBytePairkey - the key that should be set.value - the value that should be set.public ByteBytePair shallowCopy()
ByteBytePairshallowCopy in interface ByteBytePairpublic 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