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