public class CharByteImmutablePair extends java.lang.Object implements CharBytePair
EMPTY| Constructor and Description |
|---|
CharByteImmutablePair()
Default Constructor
|
CharByteImmutablePair(char key,
byte value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
byte |
getByteValue() |
char |
getCharKey() |
int |
hashCode() |
CharBytePair |
set(char key,
byte value)
Sets key and value of the Pair
|
CharBytePair |
setByteValue(byte value)
Sets the Value of the Pair.
|
CharBytePair |
setCharKey(char key)
Sets the Key of the Pair.
|
CharBytePair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic CharByteImmutablePair()
public CharByteImmutablePair(char key,
byte value)
key - the key of the Pairvalue - the value of the Pairpublic CharBytePair setCharKey(char key)
CharBytePairsetCharKey in interface CharBytePairkey - the key that should be set.public char getCharKey()
getCharKey in interface CharBytePairpublic CharBytePair setByteValue(byte value)
CharBytePairsetByteValue in interface CharBytePairvalue - the value that should be set.public byte getByteValue()
getByteValue in interface CharBytePairpublic CharBytePair set(char key, byte value)
CharBytePairset in interface CharBytePairkey - the key that should be set.value - the value that should be set.public CharBytePair shallowCopy()
CharBytePairshallowCopy in interface CharBytePairpublic 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