public class BooleanShortMutablePair extends java.lang.Object implements BooleanShortPair
EMPTY| Constructor and Description |
|---|
BooleanShortMutablePair()
Default Constructor
|
BooleanShortMutablePair(boolean key,
short value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
getBooleanKey() |
short |
getShortValue() |
int |
hashCode() |
BooleanShortPair |
set(boolean key,
short value)
Sets key and value of the Pair
|
BooleanShortPair |
setBooleanKey(boolean key)
Sets the Key of the Pair.
|
BooleanShortPair |
setShortValue(short value)
Sets the Value of the Pair.
|
BooleanShortPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic BooleanShortMutablePair()
public BooleanShortMutablePair(boolean key,
short value)
key - the key of the Pairvalue - the value of the Pairpublic BooleanShortPair setBooleanKey(boolean key)
BooleanShortPairsetBooleanKey in interface BooleanShortPairkey - the key that should be set.public boolean getBooleanKey()
getBooleanKey in interface BooleanShortPairpublic BooleanShortPair setShortValue(short value)
BooleanShortPairsetShortValue in interface BooleanShortPairvalue - the value that should be set.public short getShortValue()
getShortValue in interface BooleanShortPairpublic BooleanShortPair set(boolean key, short value)
BooleanShortPairset in interface BooleanShortPairkey - the key that should be set.value - the value that should be set.public BooleanShortPair shallowCopy()
BooleanShortPairshallowCopy in interface BooleanShortPairpublic 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