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