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