T - the keyType of elements maintained by this Collectionpublic interface ObjectBooleanPair<T>
| Modifier and Type | Field and Description |
|---|---|
static ObjectBooleanPair<?> |
EMPTY
Empty Reference for Immutable Pairs
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBooleanValue() |
T |
getKey() |
static <T> ObjectBooleanPair<T> |
mutable() |
static <T> ObjectBooleanPair<T> |
mutable(ObjectBooleanPair<T> pair) |
static <T> ObjectBooleanPair<T> |
mutable(T key,
boolean value) |
static <T> ObjectBooleanPair<T> |
mutableKey(T key) |
static <T> ObjectBooleanPair<T> |
mutableValue(boolean value) |
static <T> ObjectBooleanPair<T> |
of() |
static <T> ObjectBooleanPair<T> |
of(ObjectBooleanPair<T> pair) |
static <T> ObjectBooleanPair<T> |
of(T key,
boolean value) |
static <T> ObjectBooleanPair<T> |
ofKey(T key) |
static <T> ObjectBooleanPair<T> |
ofValue(boolean value) |
ObjectBooleanPair<T> |
set(T key,
boolean value)
Sets key and value of the Pair
|
ObjectBooleanPair<T> |
setBooleanValue(boolean value)
Sets the Value of the Pair.
|
ObjectBooleanPair<T> |
setKey(T key)
Sets the Key of the Pair.
|
ObjectBooleanPair<T> |
shallowCopy()
Clones the Pair if it is mutable.
|
static final ObjectBooleanPair<?> EMPTY
static <T> ObjectBooleanPair<T> of()
T - the keyType of elements maintained by this Collectionstatic <T> ObjectBooleanPair<T> ofKey(T key)
T - the keyType of elements maintained by this Collectionkey - the key that should be in the pairstatic <T> ObjectBooleanPair<T> ofValue(boolean value)
T - the keyType of elements maintained by this Collectionvalue - the value that should be in the pairstatic <T> ObjectBooleanPair<T> of(T key, boolean value)
T - the keyType of elements maintained by this Collectionkey - the key that should be in the pairvalue - the value that should be in the pairstatic <T> ObjectBooleanPair<T> of(ObjectBooleanPair<T> pair)
T - the keyType of elements maintained by this Collectionpair - the Pair that should be immutably copiedstatic <T> ObjectBooleanPair<T> mutable()
T - the keyType of elements maintained by this Collectionstatic <T> ObjectBooleanPair<T> mutableKey(T key)
T - the keyType of elements maintained by this Collectionkey - the key that should be in the pairstatic <T> ObjectBooleanPair<T> mutableValue(boolean value)
T - the keyType of elements maintained by this Collectionvalue - the value that should be in the pairstatic <T> ObjectBooleanPair<T> mutable(T key, boolean value)
T - the keyType of elements maintained by this Collectionkey - the key that should be in the pairvalue - the value that should be in the pairstatic <T> ObjectBooleanPair<T> mutable(ObjectBooleanPair<T> pair)
T - the keyType of elements maintained by this Collectionpair - the Pair that should be copiedObjectBooleanPair<T> setKey(T key)
key - the key that should be set.T getKey()
ObjectBooleanPair<T> setBooleanValue(boolean value)
value - the value that should be set.boolean getBooleanValue()
ObjectBooleanPair<T> set(T key, boolean value)
key - the key that should be set.value - the value that should be set.ObjectBooleanPair<T> shallowCopy()