public class ShortLongImmutablePair extends java.lang.Object implements ShortLongPair
EMPTY| Constructor and Description |
|---|
ShortLongImmutablePair()
Default Constructor
|
ShortLongImmutablePair(short key,
long value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
long |
getLongValue() |
short |
getShortKey() |
int |
hashCode() |
ShortLongPair |
set(short key,
long value)
Sets key and value of the Pair
|
ShortLongPair |
setLongValue(long value)
Sets the Value of the Pair.
|
ShortLongPair |
setShortKey(short key)
Sets the Key of the Pair.
|
ShortLongPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic ShortLongImmutablePair()
public ShortLongImmutablePair(short key,
long value)
key - the key of the Pairvalue - the value of the Pairpublic ShortLongPair setShortKey(short key)
ShortLongPairsetShortKey in interface ShortLongPairkey - the key that should be set.public short getShortKey()
getShortKey in interface ShortLongPairpublic ShortLongPair setLongValue(long value)
ShortLongPairsetLongValue in interface ShortLongPairvalue - the value that should be set.public long getLongValue()
getLongValue in interface ShortLongPairpublic ShortLongPair set(short key, long value)
ShortLongPairset in interface ShortLongPairkey - the key that should be set.value - the value that should be set.public ShortLongPair shallowCopy()
ShortLongPairshallowCopy in interface ShortLongPairpublic 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