public class CharBooleanImmutablePair extends java.lang.Object implements CharBooleanPair
EMPTY| Constructor and Description |
|---|
CharBooleanImmutablePair()
Default Constructor
|
CharBooleanImmutablePair(char key,
boolean value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
getBooleanValue() |
char |
getCharKey() |
int |
hashCode() |
CharBooleanPair |
set(char key,
boolean value)
Sets key and value of the Pair
|
CharBooleanPair |
setBooleanValue(boolean value)
Sets the Value of the Pair.
|
CharBooleanPair |
setCharKey(char key)
Sets the Key of the Pair.
|
CharBooleanPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic CharBooleanImmutablePair()
public CharBooleanImmutablePair(char key,
boolean value)
key - the key of the Pairvalue - the value of the Pairpublic CharBooleanPair setCharKey(char key)
CharBooleanPairsetCharKey in interface CharBooleanPairkey - the key that should be set.public char getCharKey()
getCharKey in interface CharBooleanPairpublic CharBooleanPair setBooleanValue(boolean value)
CharBooleanPairsetBooleanValue in interface CharBooleanPairvalue - the value that should be set.public boolean getBooleanValue()
getBooleanValue in interface CharBooleanPairpublic CharBooleanPair set(char key, boolean value)
CharBooleanPairset in interface CharBooleanPairkey - the key that should be set.value - the value that should be set.public CharBooleanPair shallowCopy()
CharBooleanPairshallowCopy in interface CharBooleanPairpublic 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