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