public class LongCharMutablePair extends java.lang.Object implements LongCharPair
EMPTY| Constructor and Description |
|---|
LongCharMutablePair()
Default Constructor
|
LongCharMutablePair(long key,
char value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
char |
getCharValue() |
long |
getLongKey() |
int |
hashCode() |
LongCharPair |
set(long key,
char value)
Sets key and value of the Pair
|
LongCharPair |
setCharValue(char value)
Sets the Value of the Pair.
|
LongCharPair |
setLongKey(long key)
Sets the Key of the Pair.
|
LongCharPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic LongCharMutablePair()
public LongCharMutablePair(long key,
char value)
key - the key of the Pairvalue - the value of the Pairpublic LongCharPair setLongKey(long key)
LongCharPairsetLongKey in interface LongCharPairkey - the key that should be set.public long getLongKey()
getLongKey in interface LongCharPairpublic LongCharPair setCharValue(char value)
LongCharPairsetCharValue in interface LongCharPairvalue - the value that should be set.public char getCharValue()
getCharValue in interface LongCharPairpublic LongCharPair set(long key, char value)
LongCharPairset in interface LongCharPairkey - the key that should be set.value - the value that should be set.public LongCharPair shallowCopy()
LongCharPairshallowCopy in interface LongCharPairpublic 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