public class CharShortMutablePair extends java.lang.Object implements CharShortPair
EMPTY| Constructor and Description |
|---|
CharShortMutablePair()
Default Constructor
|
CharShortMutablePair(char key,
short value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
char |
getCharKey() |
short |
getShortValue() |
int |
hashCode() |
CharShortPair |
set(char key,
short value)
Sets key and value of the Pair
|
CharShortPair |
setCharKey(char key)
Sets the Key of the Pair.
|
CharShortPair |
setShortValue(short value)
Sets the Value of the Pair.
|
CharShortPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic CharShortMutablePair()
public CharShortMutablePair(char key,
short value)
key - the key of the Pairvalue - the value of the Pairpublic CharShortPair setCharKey(char key)
CharShortPairsetCharKey in interface CharShortPairkey - the key that should be set.public char getCharKey()
getCharKey in interface CharShortPairpublic CharShortPair setShortValue(short value)
CharShortPairsetShortValue in interface CharShortPairvalue - the value that should be set.public short getShortValue()
getShortValue in interface CharShortPairpublic CharShortPair set(char key, short value)
CharShortPairset in interface CharShortPairkey - the key that should be set.value - the value that should be set.public CharShortPair shallowCopy()
CharShortPairshallowCopy in interface CharShortPairpublic 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