public class BooleanLongMutablePair extends java.lang.Object implements BooleanLongPair
EMPTY| Constructor and Description |
|---|
BooleanLongMutablePair()
Default Constructor
|
BooleanLongMutablePair(boolean key,
long value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
getBooleanKey() |
long |
getLongValue() |
int |
hashCode() |
BooleanLongPair |
set(boolean key,
long value)
Sets key and value of the Pair
|
BooleanLongPair |
setBooleanKey(boolean key)
Sets the Key of the Pair.
|
BooleanLongPair |
setLongValue(long value)
Sets the Value of the Pair.
|
BooleanLongPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic BooleanLongMutablePair()
public BooleanLongMutablePair(boolean key,
long value)
key - the key of the Pairvalue - the value of the Pairpublic BooleanLongPair setBooleanKey(boolean key)
BooleanLongPairsetBooleanKey in interface BooleanLongPairkey - the key that should be set.public boolean getBooleanKey()
getBooleanKey in interface BooleanLongPairpublic BooleanLongPair setLongValue(long value)
BooleanLongPairsetLongValue in interface BooleanLongPairvalue - the value that should be set.public long getLongValue()
getLongValue in interface BooleanLongPairpublic BooleanLongPair set(boolean key, long value)
BooleanLongPairset in interface BooleanLongPairkey - the key that should be set.value - the value that should be set.public BooleanLongPair shallowCopy()
BooleanLongPairshallowCopy in interface BooleanLongPairpublic 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