V - the type of elements maintained by this Collectionpublic class ByteObjectImmutablePair<V> extends java.lang.Object implements ByteObjectPair<V>
EMPTY| Constructor and Description |
|---|
ByteObjectImmutablePair()
Default Constructor
|
ByteObjectImmutablePair(byte key,
V value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
byte |
getByteKey() |
V |
getValue() |
int |
hashCode() |
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.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic ByteObjectImmutablePair()
public ByteObjectImmutablePair(byte key,
V value)
key - the key of the Pairvalue - the value of the Pairpublic ByteObjectPair<V> setByteKey(byte key)
ByteObjectPairsetByteKey in interface ByteObjectPair<V>key - the key that should be set.public byte getByteKey()
getByteKey in interface ByteObjectPair<V>public ByteObjectPair<V> setValue(V value)
ByteObjectPairsetValue in interface ByteObjectPair<V>value - the value that should be set.public V getValue()
getValue in interface ByteObjectPair<V>public ByteObjectPair<V> set(byte key, V value)
ByteObjectPairset in interface ByteObjectPair<V>key - the key that should be set.value - the value that should be set.public ByteObjectPair<V> shallowCopy()
ByteObjectPairshallowCopy in interface ByteObjectPair<V>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