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