V - the keyType of elements maintained by this Collectionpublic class BooleanObjectImmutablePair<V> extends java.lang.Object implements BooleanObjectPair<V>
EMPTY| Constructor and Description |
|---|
BooleanObjectImmutablePair()
Default Constructor
|
BooleanObjectImmutablePair(boolean key,
V value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
getBooleanKey() |
V |
getValue() |
int |
hashCode() |
BooleanObjectPair<V> |
set(boolean key,
V value)
Sets key and value of the Pair
|
BooleanObjectPair<V> |
setBooleanKey(boolean key)
Sets the Key of the Pair.
|
BooleanObjectPair<V> |
setValue(V value)
Sets the Value of the Pair.
|
BooleanObjectPair<V> |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic BooleanObjectImmutablePair()
public BooleanObjectImmutablePair(boolean key,
V value)
key - the key of the Pairvalue - the value of the Pairpublic BooleanObjectPair<V> setBooleanKey(boolean key)
BooleanObjectPairsetBooleanKey in interface BooleanObjectPair<V>key - the key that should be set.public boolean getBooleanKey()
getBooleanKey in interface BooleanObjectPair<V>public BooleanObjectPair<V> setValue(V value)
BooleanObjectPairsetValue in interface BooleanObjectPair<V>value - the value that should be set.public V getValue()
getValue in interface BooleanObjectPair<V>public BooleanObjectPair<V> set(boolean key, V value)
BooleanObjectPairset in interface BooleanObjectPair<V>key - the key that should be set.value - the value that should be set.public BooleanObjectPair<V> shallowCopy()
BooleanObjectPairshallowCopy in interface BooleanObjectPair<V>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