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