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