public interface CharBooleanPair
| Modifier and Type | Field and Description |
|---|---|
static CharBooleanPair |
EMPTY
Empty Reference for Immutable Pairs
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBooleanValue() |
char |
getCharKey() |
static CharBooleanPair |
mutable() |
static CharBooleanPair |
mutable(char key,
boolean value) |
static CharBooleanPair |
mutable(CharBooleanPair pair) |
static CharBooleanPair |
mutableKey(char key) |
static CharBooleanPair |
mutableValue(boolean value) |
static CharBooleanPair |
of() |
static CharBooleanPair |
of(char key,
boolean value) |
static CharBooleanPair |
of(CharBooleanPair pair) |
static CharBooleanPair |
ofKey(char key) |
static CharBooleanPair |
ofValue(boolean value) |
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.
|
static final CharBooleanPair EMPTY
static CharBooleanPair of()
static CharBooleanPair ofKey(char key)
key - the key that should be in the pairstatic CharBooleanPair ofValue(boolean value)
value - the value that should be in the pairstatic CharBooleanPair of(char key, boolean value)
key - the key that should be in the pairvalue - the value that should be in the pairstatic CharBooleanPair of(CharBooleanPair pair)
pair - the Pair that should be immutably copiedstatic CharBooleanPair mutable()
static CharBooleanPair mutableKey(char key)
key - the key that should be in the pairstatic CharBooleanPair mutableValue(boolean value)
value - the value that should be in the pairstatic CharBooleanPair mutable(char key, boolean value)
key - the key that should be in the pairvalue - the value that should be in the pairstatic CharBooleanPair mutable(CharBooleanPair pair)
pair - the Pair that should be copiedCharBooleanPair setCharKey(char key)
key - the key that should be set.char getCharKey()
CharBooleanPair setBooleanValue(boolean value)
value - the value that should be set.boolean getBooleanValue()
CharBooleanPair set(char key, boolean value)
key - the key that should be set.value - the value that should be set.CharBooleanPair shallowCopy()