public class IntCharImmutablePair extends java.lang.Object implements IntCharPair
EMPTY| Constructor and Description |
|---|
IntCharImmutablePair()
Default Constructor
|
IntCharImmutablePair(int key,
char value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
char |
getCharValue() |
int |
getIntKey() |
int |
hashCode() |
IntCharPair |
set(int key,
char value)
Sets key and value of the Pair
|
IntCharPair |
setCharValue(char value)
Sets the Value of the Pair.
|
IntCharPair |
setIntKey(int key)
Sets the Key of the Pair.
|
IntCharPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic IntCharImmutablePair()
public IntCharImmutablePair(int key,
char value)
key - the key of the Pairvalue - the value of the Pairpublic IntCharPair setIntKey(int key)
IntCharPairsetIntKey in interface IntCharPairkey - the key that should be set.public int getIntKey()
getIntKey in interface IntCharPairpublic IntCharPair setCharValue(char value)
IntCharPairsetCharValue in interface IntCharPairvalue - the value that should be set.public char getCharValue()
getCharValue in interface IntCharPairpublic IntCharPair set(int key, char value)
IntCharPairset in interface IntCharPairkey - the key that should be set.value - the value that should be set.public IntCharPair shallowCopy()
IntCharPairshallowCopy in interface IntCharPairpublic 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