public class ShortBooleanImmutablePair extends java.lang.Object implements ShortBooleanPair
EMPTY| Constructor and Description |
|---|
ShortBooleanImmutablePair()
Default Constructor
|
ShortBooleanImmutablePair(short key,
boolean value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
getBooleanValue() |
short |
getShortKey() |
int |
hashCode() |
ShortBooleanPair |
set(short key,
boolean value)
Sets key and value of the Pair
|
ShortBooleanPair |
setBooleanValue(boolean value)
Sets the Value of the Pair.
|
ShortBooleanPair |
setShortKey(short key)
Sets the Key of the Pair.
|
ShortBooleanPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic ShortBooleanImmutablePair()
public ShortBooleanImmutablePair(short key,
boolean value)
key - the key of the Pairvalue - the value of the Pairpublic ShortBooleanPair setShortKey(short key)
ShortBooleanPairsetShortKey in interface ShortBooleanPairkey - the key that should be set.public short getShortKey()
getShortKey in interface ShortBooleanPairpublic ShortBooleanPair setBooleanValue(boolean value)
ShortBooleanPairsetBooleanValue in interface ShortBooleanPairvalue - the value that should be set.public boolean getBooleanValue()
getBooleanValue in interface ShortBooleanPairpublic ShortBooleanPair set(short key, boolean value)
ShortBooleanPairset in interface ShortBooleanPairkey - the key that should be set.value - the value that should be set.public ShortBooleanPair shallowCopy()
ShortBooleanPairshallowCopy in interface ShortBooleanPairpublic 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