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