public class CharLongImmutablePair extends java.lang.Object implements CharLongPair
EMPTY| Constructor and Description |
|---|
CharLongImmutablePair()
Default Constructor
|
CharLongImmutablePair(char key,
long value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
char |
getCharKey() |
long |
getLongValue() |
int |
hashCode() |
CharLongPair |
set(char key,
long value)
Sets key and value of the Pair
|
CharLongPair |
setCharKey(char key)
Sets the Key of the Pair.
|
CharLongPair |
setLongValue(long value)
Sets the Value of the Pair.
|
CharLongPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic CharLongImmutablePair()
public CharLongImmutablePair(char key,
long value)
key - the key of the Pairvalue - the value of the Pairpublic CharLongPair setCharKey(char key)
CharLongPairsetCharKey in interface CharLongPairkey - the key that should be set.public char getCharKey()
getCharKey in interface CharLongPairpublic CharLongPair setLongValue(long value)
CharLongPairsetLongValue in interface CharLongPairvalue - the value that should be set.public long getLongValue()
getLongValue in interface CharLongPairpublic CharLongPair set(char key, long value)
CharLongPairset in interface CharLongPairkey - the key that should be set.value - the value that should be set.public CharLongPair shallowCopy()
CharLongPairshallowCopy in interface CharLongPairpublic 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