T - the keyType of elements maintained by this Collectionpublic class ObjectByteMutablePair<T> extends java.lang.Object implements ObjectBytePair<T>
EMPTY| Constructor and Description |
|---|
ObjectByteMutablePair()
Default Constructor
|
ObjectByteMutablePair(T key,
byte value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
byte |
getByteValue() |
T |
getKey() |
int |
hashCode() |
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.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic ObjectByteMutablePair()
public ObjectByteMutablePair(T key, byte value)
key - the key of the Pairvalue - the value of the Pairpublic ObjectBytePair<T> setKey(T key)
ObjectBytePairsetKey in interface ObjectBytePair<T>key - the key that should be set.public T getKey()
getKey in interface ObjectBytePair<T>public ObjectBytePair<T> setByteValue(byte value)
ObjectBytePairsetByteValue in interface ObjectBytePair<T>value - the value that should be set.public byte getByteValue()
getByteValue in interface ObjectBytePair<T>public ObjectBytePair<T> set(T key, byte value)
ObjectBytePairset in interface ObjectBytePair<T>key - the key that should be set.value - the value that should be set.public ObjectBytePair<T> shallowCopy()
ObjectBytePairshallowCopy in interface ObjectBytePair<T>public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object