public class ByteBooleanMutablePair extends java.lang.Object implements ByteBooleanPair
EMPTY| Constructor and Description |
|---|
ByteBooleanMutablePair()
Default Constructor
|
ByteBooleanMutablePair(byte key,
boolean value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
getBooleanValue() |
byte |
getByteKey() |
int |
hashCode() |
ByteBooleanPair |
set(byte key,
boolean value)
Sets key and value of the Pair
|
ByteBooleanPair |
setBooleanValue(boolean value)
Sets the Value of the Pair.
|
ByteBooleanPair |
setByteKey(byte key)
Sets the Key of the Pair.
|
ByteBooleanPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic ByteBooleanMutablePair()
public ByteBooleanMutablePair(byte key,
boolean value)
key - the key of the Pairvalue - the value of the Pairpublic ByteBooleanPair setByteKey(byte key)
ByteBooleanPairsetByteKey in interface ByteBooleanPairkey - the key that should be set.public byte getByteKey()
getByteKey in interface ByteBooleanPairpublic ByteBooleanPair setBooleanValue(boolean value)
ByteBooleanPairsetBooleanValue in interface ByteBooleanPairvalue - the value that should be set.public boolean getBooleanValue()
getBooleanValue in interface ByteBooleanPairpublic ByteBooleanPair set(byte key, boolean value)
ByteBooleanPairset in interface ByteBooleanPairkey - the key that should be set.value - the value that should be set.public ByteBooleanPair shallowCopy()
ByteBooleanPairshallowCopy in interface ByteBooleanPairpublic 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