public class IntShortMutablePair extends java.lang.Object implements IntShortPair
EMPTY| Constructor and Description |
|---|
IntShortMutablePair()
Default Constructor
|
IntShortMutablePair(int key,
short value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getIntKey() |
short |
getShortValue() |
int |
hashCode() |
IntShortPair |
set(int key,
short value)
Sets key and value of the Pair
|
IntShortPair |
setIntKey(int key)
Sets the Key of the Pair.
|
IntShortPair |
setShortValue(short value)
Sets the Value of the Pair.
|
IntShortPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic IntShortMutablePair()
public IntShortMutablePair(int key,
short value)
key - the key of the Pairvalue - the value of the Pairpublic IntShortPair setIntKey(int key)
IntShortPairsetIntKey in interface IntShortPairkey - the key that should be set.public int getIntKey()
getIntKey in interface IntShortPairpublic IntShortPair setShortValue(short value)
IntShortPairsetShortValue in interface IntShortPairvalue - the value that should be set.public short getShortValue()
getShortValue in interface IntShortPairpublic IntShortPair set(int key, short value)
IntShortPairset in interface IntShortPairkey - the key that should be set.value - the value that should be set.public IntShortPair shallowCopy()
IntShortPairshallowCopy in interface IntShortPairpublic 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