public interface BooleanIntPair
| Modifier and Type | Field and Description |
|---|---|
static BooleanIntPair |
EMPTY
Empty Reference for Immutable Pairs
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBooleanKey() |
int |
getIntValue() |
static BooleanIntPair |
mutable() |
static BooleanIntPair |
mutable(boolean key,
int value) |
static BooleanIntPair |
mutable(BooleanIntPair pair) |
static BooleanIntPair |
mutableKey(boolean key) |
static BooleanIntPair |
mutableValue(int value) |
static BooleanIntPair |
of() |
static BooleanIntPair |
of(boolean key,
int value) |
static BooleanIntPair |
of(BooleanIntPair pair) |
static BooleanIntPair |
ofKey(boolean key) |
static BooleanIntPair |
ofValue(int value) |
BooleanIntPair |
set(boolean key,
int value)
Sets key and value of the Pair
|
BooleanIntPair |
setBooleanKey(boolean key)
Sets the Key of the Pair.
|
BooleanIntPair |
setIntValue(int value)
Sets the Value of the Pair.
|
BooleanIntPair |
shallowCopy()
Clones the Pair if it is mutable.
|
static final BooleanIntPair EMPTY
static BooleanIntPair of()
static BooleanIntPair ofKey(boolean key)
key - the key that should be in the pairstatic BooleanIntPair ofValue(int value)
value - the value that should be in the pairstatic BooleanIntPair of(boolean key, int value)
key - the key that should be in the pairvalue - the value that should be in the pairstatic BooleanIntPair of(BooleanIntPair pair)
pair - the Pair that should be immutably copiedstatic BooleanIntPair mutable()
static BooleanIntPair mutableKey(boolean key)
key - the key that should be in the pairstatic BooleanIntPair mutableValue(int value)
value - the value that should be in the pairstatic BooleanIntPair mutable(boolean key, int value)
key - the key that should be in the pairvalue - the value that should be in the pairstatic BooleanIntPair mutable(BooleanIntPair pair)
pair - the Pair that should be copiedBooleanIntPair setBooleanKey(boolean key)
key - the key that should be set.boolean getBooleanKey()
BooleanIntPair setIntValue(int value)
value - the value that should be set.int getIntValue()
BooleanIntPair set(boolean key, int value)
key - the key that should be set.value - the value that should be set.BooleanIntPair shallowCopy()