public class CharIntMutablePair extends java.lang.Object implements CharIntPair
EMPTY| Constructor and Description |
|---|
CharIntMutablePair()
Default Constructor
|
CharIntMutablePair(char key,
int value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
char |
getCharKey() |
int |
getIntValue() |
int |
hashCode() |
CharIntPair |
set(char key,
int value)
Sets key and value of the Pair
|
CharIntPair |
setCharKey(char key)
Sets the Key of the Pair.
|
CharIntPair |
setIntValue(int value)
Sets the Value of the Pair.
|
CharIntPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic CharIntMutablePair()
public CharIntMutablePair(char key,
int value)
key - the key of the Pairvalue - the value of the Pairpublic CharIntPair setCharKey(char key)
CharIntPairsetCharKey in interface CharIntPairkey - the key that should be set.public char getCharKey()
getCharKey in interface CharIntPairpublic CharIntPair setIntValue(int value)
CharIntPairsetIntValue in interface CharIntPairvalue - the value that should be set.public int getIntValue()
getIntValue in interface CharIntPairpublic CharIntPair set(char key, int value)
CharIntPairset in interface CharIntPairkey - the key that should be set.value - the value that should be set.public CharIntPair shallowCopy()
CharIntPairshallowCopy in interface CharIntPairpublic 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