public class ShortShortImmutablePair extends java.lang.Object implements ShortShortPair
EMPTY| Constructor and Description |
|---|
ShortShortImmutablePair()
Default Constructor
|
ShortShortImmutablePair(short key,
short value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
short |
getShortKey() |
short |
getShortValue() |
int |
hashCode() |
ShortShortPair |
set(short key,
short value)
Sets key and value of the Pair
|
ShortShortPair |
setShortKey(short key)
Sets the Key of the Pair.
|
ShortShortPair |
setShortValue(short value)
Sets the Value of the Pair.
|
ShortShortPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic ShortShortImmutablePair()
public ShortShortImmutablePair(short key,
short value)
key - the key of the Pairvalue - the value of the Pairpublic ShortShortPair setShortKey(short key)
ShortShortPairsetShortKey in interface ShortShortPairkey - the key that should be set.public short getShortKey()
getShortKey in interface ShortShortPairpublic ShortShortPair setShortValue(short value)
ShortShortPairsetShortValue in interface ShortShortPairvalue - the value that should be set.public short getShortValue()
getShortValue in interface ShortShortPairpublic ShortShortPair set(short key, short value)
ShortShortPairset in interface ShortShortPairkey - the key that should be set.value - the value that should be set.public ShortShortPair shallowCopy()
ShortShortPairshallowCopy in interface ShortShortPairpublic 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