T - the keyType of elements maintained by this Collectionpublic class ObjectShortImmutablePair<T> extends java.lang.Object implements ObjectShortPair<T>
EMPTY| Constructor and Description |
|---|
ObjectShortImmutablePair()
Default Constructor
|
ObjectShortImmutablePair(T key,
short value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
T |
getKey() |
short |
getShortValue() |
int |
hashCode() |
ObjectShortPair<T> |
set(T key,
short value)
Sets key and value of the Pair
|
ObjectShortPair<T> |
setKey(T key)
Sets the Key of the Pair.
|
ObjectShortPair<T> |
setShortValue(short value)
Sets the Value of the Pair.
|
ObjectShortPair<T> |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic ObjectShortImmutablePair()
public ObjectShortImmutablePair(T key, short value)
key - the key of the Pairvalue - the value of the Pairpublic ObjectShortPair<T> setKey(T key)
ObjectShortPairsetKey in interface ObjectShortPair<T>key - the key that should be set.public T getKey()
getKey in interface ObjectShortPair<T>public ObjectShortPair<T> setShortValue(short value)
ObjectShortPairsetShortValue in interface ObjectShortPair<T>value - the value that should be set.public short getShortValue()
getShortValue in interface ObjectShortPair<T>public ObjectShortPair<T> set(T key, short value)
ObjectShortPairset in interface ObjectShortPair<T>key - the key that should be set.value - the value that should be set.public ObjectShortPair<T> shallowCopy()
ObjectShortPairshallowCopy in interface ObjectShortPair<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