public class IntBooleanImmutablePair extends java.lang.Object implements IntBooleanPair
EMPTY| Constructor and Description |
|---|
IntBooleanImmutablePair()
Default Constructor
|
IntBooleanImmutablePair(int key,
boolean value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
getBooleanValue() |
int |
getIntKey() |
int |
hashCode() |
IntBooleanPair |
set(int key,
boolean value)
Sets key and value of the Pair
|
IntBooleanPair |
setBooleanValue(boolean value)
Sets the Value of the Pair.
|
IntBooleanPair |
setIntKey(int key)
Sets the Key of the Pair.
|
IntBooleanPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic IntBooleanImmutablePair()
public IntBooleanImmutablePair(int key,
boolean value)
key - the key of the Pairvalue - the value of the Pairpublic IntBooleanPair setIntKey(int key)
IntBooleanPairsetIntKey in interface IntBooleanPairkey - the key that should be set.public int getIntKey()
getIntKey in interface IntBooleanPairpublic IntBooleanPair setBooleanValue(boolean value)
IntBooleanPairsetBooleanValue in interface IntBooleanPairvalue - the value that should be set.public boolean getBooleanValue()
getBooleanValue in interface IntBooleanPairpublic IntBooleanPair set(int key, boolean value)
IntBooleanPairset in interface IntBooleanPairkey - the key that should be set.value - the value that should be set.public IntBooleanPair shallowCopy()
IntBooleanPairshallowCopy in interface IntBooleanPairpublic 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