public class ShortIntMutablePair extends java.lang.Object implements ShortIntPair
EMPTY| Constructor and Description |
|---|
ShortIntMutablePair()
Default Constructor
|
ShortIntMutablePair(short key,
int value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getIntValue() |
short |
getShortKey() |
int |
hashCode() |
ShortIntPair |
set(short key,
int value)
Sets key and value of the Pair
|
ShortIntPair |
setIntValue(int value)
Sets the Value of the Pair.
|
ShortIntPair |
setShortKey(short key)
Sets the Key of the Pair.
|
ShortIntPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic ShortIntMutablePair()
public ShortIntMutablePair(short key,
int value)
key - the key of the Pairvalue - the value of the Pairpublic ShortIntPair setShortKey(short key)
ShortIntPairsetShortKey in interface ShortIntPairkey - the key that should be set.public short getShortKey()
getShortKey in interface ShortIntPairpublic ShortIntPair setIntValue(int value)
ShortIntPairsetIntValue in interface ShortIntPairvalue - the value that should be set.public int getIntValue()
getIntValue in interface ShortIntPairpublic ShortIntPair set(short key, int value)
ShortIntPairset in interface ShortIntPairkey - the key that should be set.value - the value that should be set.public ShortIntPair shallowCopy()
ShortIntPairshallowCopy in interface ShortIntPairpublic 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