public class ByteCharImmutablePair extends java.lang.Object implements ByteCharPair
EMPTY| Constructor and Description |
|---|
ByteCharImmutablePair()
Default Constructor
|
ByteCharImmutablePair(byte key,
char value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
byte |
getByteKey() |
char |
getCharValue() |
int |
hashCode() |
ByteCharPair |
set(byte key,
char value)
Sets key and value of the Pair
|
ByteCharPair |
setByteKey(byte key)
Sets the Key of the Pair.
|
ByteCharPair |
setCharValue(char value)
Sets the Value of the Pair.
|
ByteCharPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic ByteCharImmutablePair()
public ByteCharImmutablePair(byte key,
char value)
key - the key of the Pairvalue - the value of the Pairpublic ByteCharPair setByteKey(byte key)
ByteCharPairsetByteKey in interface ByteCharPairkey - the key that should be set.public byte getByteKey()
getByteKey in interface ByteCharPairpublic ByteCharPair setCharValue(char value)
ByteCharPairsetCharValue in interface ByteCharPairvalue - the value that should be set.public char getCharValue()
getCharValue in interface ByteCharPairpublic ByteCharPair set(byte key, char value)
ByteCharPairset in interface ByteCharPairkey - the key that should be set.value - the value that should be set.public ByteCharPair shallowCopy()
ByteCharPairshallowCopy in interface ByteCharPairpublic 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