public class BooleanIntImmutablePair extends java.lang.Object implements BooleanIntPair
EMPTY| Constructor and Description |
|---|
BooleanIntImmutablePair()
Default Constructor
|
BooleanIntImmutablePair(boolean key,
int value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
getBooleanKey() |
int |
getIntValue() |
int |
hashCode() |
BooleanIntPair |
set(boolean key,
int value)
Sets key and value of the Pair
|
BooleanIntPair |
setBooleanKey(boolean key)
Sets the Key of the Pair.
|
BooleanIntPair |
setIntValue(int value)
Sets the Value of the Pair.
|
BooleanIntPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic BooleanIntImmutablePair()
public BooleanIntImmutablePair(boolean key,
int value)
key - the key of the Pairvalue - the value of the Pairpublic BooleanIntPair setBooleanKey(boolean key)
BooleanIntPairsetBooleanKey in interface BooleanIntPairkey - the key that should be set.public boolean getBooleanKey()
getBooleanKey in interface BooleanIntPairpublic BooleanIntPair setIntValue(int value)
BooleanIntPairsetIntValue in interface BooleanIntPairvalue - the value that should be set.public int getIntValue()
getIntValue in interface BooleanIntPairpublic BooleanIntPair set(boolean key, int value)
BooleanIntPairset in interface BooleanIntPairkey - the key that should be set.value - the value that should be set.public BooleanIntPair shallowCopy()
BooleanIntPairshallowCopy in interface BooleanIntPairpublic 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