public class ByteIntImmutablePair extends java.lang.Object implements ByteIntPair
EMPTY| Constructor and Description |
|---|
ByteIntImmutablePair()
Default Constructor
|
ByteIntImmutablePair(byte key,
int value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
byte |
getByteKey() |
int |
getIntValue() |
int |
hashCode() |
ByteIntPair |
set(byte key,
int value)
Sets key and value of the Pair
|
ByteIntPair |
setByteKey(byte key)
Sets the Key of the Pair.
|
ByteIntPair |
setIntValue(int value)
Sets the Value of the Pair.
|
ByteIntPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic ByteIntImmutablePair()
public ByteIntImmutablePair(byte key,
int value)
key - the key of the Pairvalue - the value of the Pairpublic ByteIntPair setByteKey(byte key)
ByteIntPairsetByteKey in interface ByteIntPairkey - the key that should be set.public byte getByteKey()
getByteKey in interface ByteIntPairpublic ByteIntPair setIntValue(int value)
ByteIntPairsetIntValue in interface ByteIntPairvalue - the value that should be set.public int getIntValue()
getIntValue in interface ByteIntPairpublic ByteIntPair set(byte key, int value)
ByteIntPairset in interface ByteIntPairkey - the key that should be set.value - the value that should be set.public ByteIntPair shallowCopy()
ByteIntPairshallowCopy in interface ByteIntPairpublic 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