public class LongBooleanImmutablePair extends java.lang.Object implements LongBooleanPair
EMPTY| Constructor and Description |
|---|
LongBooleanImmutablePair()
Default Constructor
|
LongBooleanImmutablePair(long key,
boolean value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
getBooleanValue() |
long |
getLongKey() |
int |
hashCode() |
LongBooleanPair |
set(long key,
boolean value)
Sets key and value of the Pair
|
LongBooleanPair |
setBooleanValue(boolean value)
Sets the Value of the Pair.
|
LongBooleanPair |
setLongKey(long key)
Sets the Key of the Pair.
|
LongBooleanPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic LongBooleanImmutablePair()
public LongBooleanImmutablePair(long key,
boolean value)
key - the key of the Pairvalue - the value of the Pairpublic LongBooleanPair setLongKey(long key)
LongBooleanPairsetLongKey in interface LongBooleanPairkey - the key that should be set.public long getLongKey()
getLongKey in interface LongBooleanPairpublic LongBooleanPair setBooleanValue(boolean value)
LongBooleanPairsetBooleanValue in interface LongBooleanPairvalue - the value that should be set.public boolean getBooleanValue()
getBooleanValue in interface LongBooleanPairpublic LongBooleanPair set(long key, boolean value)
LongBooleanPairset in interface LongBooleanPairkey - the key that should be set.value - the value that should be set.public LongBooleanPair shallowCopy()
LongBooleanPairshallowCopy in interface LongBooleanPairpublic 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