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