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