public class CharCharImmutablePair extends java.lang.Object implements CharCharPair
EMPTY| Constructor and Description |
|---|
CharCharImmutablePair()
Default Constructor
|
CharCharImmutablePair(char key,
char value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
char |
getCharKey() |
char |
getCharValue() |
int |
hashCode() |
CharCharPair |
set(char key,
char value)
Sets key and value of the Pair
|
CharCharPair |
setCharKey(char key)
Sets the Key of the Pair.
|
CharCharPair |
setCharValue(char value)
Sets the Value of the Pair.
|
CharCharPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic CharCharImmutablePair()
public CharCharImmutablePair(char key,
char value)
key - the key of the Pairvalue - the value of the Pairpublic CharCharPair setCharKey(char key)
CharCharPairsetCharKey in interface CharCharPairkey - the key that should be set.public char getCharKey()
getCharKey in interface CharCharPairpublic CharCharPair setCharValue(char value)
CharCharPairsetCharValue in interface CharCharPairvalue - the value that should be set.public char getCharValue()
getCharValue in interface CharCharPairpublic CharCharPair set(char key, char value)
CharCharPairset in interface CharCharPairkey - the key that should be set.value - the value that should be set.public CharCharPair shallowCopy()
CharCharPairshallowCopy in interface CharCharPairpublic 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