T - the keyType of elements maintained by this Collectionpublic class ObjectCharImmutablePair<T> extends java.lang.Object implements ObjectCharPair<T>
EMPTY| Constructor and Description |
|---|
ObjectCharImmutablePair()
Default Constructor
|
ObjectCharImmutablePair(T key,
char value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
char |
getCharValue() |
T |
getKey() |
int |
hashCode() |
ObjectCharPair<T> |
set(T key,
char value)
Sets key and value of the Pair
|
ObjectCharPair<T> |
setCharValue(char value)
Sets the Value of the Pair.
|
ObjectCharPair<T> |
setKey(T key)
Sets the Key of the Pair.
|
ObjectCharPair<T> |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic ObjectCharImmutablePair()
public ObjectCharImmutablePair(T key, char value)
key - the key of the Pairvalue - the value of the Pairpublic ObjectCharPair<T> setKey(T key)
ObjectCharPairsetKey in interface ObjectCharPair<T>key - the key that should be set.public T getKey()
getKey in interface ObjectCharPair<T>public ObjectCharPair<T> setCharValue(char value)
ObjectCharPairsetCharValue in interface ObjectCharPair<T>value - the value that should be set.public char getCharValue()
getCharValue in interface ObjectCharPair<T>public ObjectCharPair<T> set(T key, char value)
ObjectCharPairset in interface ObjectCharPair<T>key - the key that should be set.value - the value that should be set.public ObjectCharPair<T> shallowCopy()
ObjectCharPairshallowCopy in interface ObjectCharPair<T>public 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