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