public class ShortCharImmutablePair extends java.lang.Object implements ShortCharPair
EMPTY| Constructor and Description |
|---|
ShortCharImmutablePair()
Default Constructor
|
ShortCharImmutablePair(short key,
char value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
char |
getCharValue() |
short |
getShortKey() |
int |
hashCode() |
ShortCharPair |
set(short key,
char value)
Sets key and value of the Pair
|
ShortCharPair |
setCharValue(char value)
Sets the Value of the Pair.
|
ShortCharPair |
setShortKey(short key)
Sets the Key of the Pair.
|
ShortCharPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic ShortCharImmutablePair()
public ShortCharImmutablePair(short key,
char value)
key - the key of the Pairvalue - the value of the Pairpublic ShortCharPair setShortKey(short key)
ShortCharPairsetShortKey in interface ShortCharPairkey - the key that should be set.public short getShortKey()
getShortKey in interface ShortCharPairpublic ShortCharPair setCharValue(char value)
ShortCharPairsetCharValue in interface ShortCharPairvalue - the value that should be set.public char getCharValue()
getCharValue in interface ShortCharPairpublic ShortCharPair set(short key, char value)
ShortCharPairset in interface ShortCharPairkey - the key that should be set.value - the value that should be set.public ShortCharPair shallowCopy()
ShortCharPairshallowCopy in interface ShortCharPairpublic 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