public class IntByteImmutablePair extends java.lang.Object implements IntBytePair
EMPTY| Constructor and Description |
|---|
IntByteImmutablePair()
Default Constructor
|
IntByteImmutablePair(int key,
byte value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
byte |
getByteValue() |
int |
getIntKey() |
int |
hashCode() |
IntBytePair |
set(int key,
byte value)
Sets key and value of the Pair
|
IntBytePair |
setByteValue(byte value)
Sets the Value of the Pair.
|
IntBytePair |
setIntKey(int key)
Sets the Key of the Pair.
|
IntBytePair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic IntByteImmutablePair()
public IntByteImmutablePair(int key,
byte value)
key - the key of the Pairvalue - the value of the Pairpublic IntBytePair setIntKey(int key)
IntBytePairsetIntKey in interface IntBytePairkey - the key that should be set.public int getIntKey()
getIntKey in interface IntBytePairpublic IntBytePair setByteValue(byte value)
IntBytePairsetByteValue in interface IntBytePairvalue - the value that should be set.public byte getByteValue()
getByteValue in interface IntBytePairpublic IntBytePair set(int key, byte value)
IntBytePairset in interface IntBytePairkey - the key that should be set.value - the value that should be set.public IntBytePair shallowCopy()
IntBytePairshallowCopy in interface IntBytePairpublic 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