public class BooleanCharImmutablePair extends java.lang.Object implements BooleanCharPair
EMPTY| Constructor and Description |
|---|
BooleanCharImmutablePair()
Default Constructor
|
BooleanCharImmutablePair(boolean key,
char value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
getBooleanKey() |
char |
getCharValue() |
int |
hashCode() |
BooleanCharPair |
set(boolean key,
char value)
Sets key and value of the Pair
|
BooleanCharPair |
setBooleanKey(boolean key)
Sets the Key of the Pair.
|
BooleanCharPair |
setCharValue(char value)
Sets the Value of the Pair.
|
BooleanCharPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic BooleanCharImmutablePair()
public BooleanCharImmutablePair(boolean key,
char value)
key - the key of the Pairvalue - the value of the Pairpublic BooleanCharPair setBooleanKey(boolean key)
BooleanCharPairsetBooleanKey in interface BooleanCharPairkey - the key that should be set.public boolean getBooleanKey()
getBooleanKey in interface BooleanCharPairpublic BooleanCharPair setCharValue(char value)
BooleanCharPairsetCharValue in interface BooleanCharPairvalue - the value that should be set.public char getCharValue()
getCharValue in interface BooleanCharPairpublic BooleanCharPair set(boolean key, char value)
BooleanCharPairset in interface BooleanCharPairkey - the key that should be set.value - the value that should be set.public BooleanCharPair shallowCopy()
BooleanCharPairshallowCopy in interface BooleanCharPairpublic 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