T - the type of elements maintained by this Collectionpublic class ObjectBooleanMutablePair<T> extends java.lang.Object implements ObjectBooleanPair<T>
EMPTY| Constructor and Description |
|---|
ObjectBooleanMutablePair()
Default Constructor
|
ObjectBooleanMutablePair(T key,
boolean value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
getBooleanValue() |
T |
getKey() |
int |
hashCode() |
ObjectBooleanPair<T> |
set(T key,
boolean value)
Sets key and value of the Pair
|
ObjectBooleanPair<T> |
setBooleanValue(boolean value)
Sets the Value of the Pair.
|
ObjectBooleanPair<T> |
setKey(T key)
Sets the Key of the Pair.
|
ObjectBooleanPair<T> |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic ObjectBooleanMutablePair()
public ObjectBooleanMutablePair(T key, boolean value)
key - the key of the Pairvalue - the value of the Pairpublic ObjectBooleanPair<T> setKey(T key)
ObjectBooleanPairsetKey in interface ObjectBooleanPair<T>key - the key that should be set.public T getKey()
getKey in interface ObjectBooleanPair<T>public ObjectBooleanPair<T> setBooleanValue(boolean value)
ObjectBooleanPairsetBooleanValue in interface ObjectBooleanPair<T>value - the value that should be set.public boolean getBooleanValue()
getBooleanValue in interface ObjectBooleanPair<T>public ObjectBooleanPair<T> set(T key, boolean value)
ObjectBooleanPairset in interface ObjectBooleanPair<T>key - the key that should be set.value - the value that should be set.public ObjectBooleanPair<T> shallowCopy()
ObjectBooleanPairshallowCopy in interface ObjectBooleanPair<T>public 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