public class LongLongMutablePair extends java.lang.Object implements LongLongPair
EMPTY| Constructor and Description |
|---|
LongLongMutablePair()
Default Constructor
|
LongLongMutablePair(long key,
long value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
long |
getLongKey() |
long |
getLongValue() |
int |
hashCode() |
LongLongPair |
set(long key,
long value)
Sets key and value of the Pair
|
LongLongPair |
setLongKey(long key)
Sets the Key of the Pair.
|
LongLongPair |
setLongValue(long value)
Sets the Value of the Pair.
|
LongLongPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic LongLongMutablePair()
public LongLongMutablePair(long key,
long value)
key - the key of the Pairvalue - the value of the Pairpublic LongLongPair setLongKey(long key)
LongLongPairsetLongKey in interface LongLongPairkey - the key that should be set.public long getLongKey()
getLongKey in interface LongLongPairpublic LongLongPair setLongValue(long value)
LongLongPairsetLongValue in interface LongLongPairvalue - the value that should be set.public long getLongValue()
getLongValue in interface LongLongPairpublic LongLongPair set(long key, long value)
LongLongPairset in interface LongLongPairkey - the key that should be set.value - the value that should be set.public LongLongPair shallowCopy()
LongLongPairshallowCopy in interface LongLongPairpublic 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