public class LongShortImmutablePair extends java.lang.Object implements LongShortPair
EMPTY| Constructor and Description |
|---|
LongShortImmutablePair()
Default Constructor
|
LongShortImmutablePair(long key,
short value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
long |
getLongKey() |
short |
getShortValue() |
int |
hashCode() |
LongShortPair |
set(long key,
short value)
Sets key and value of the Pair
|
LongShortPair |
setLongKey(long key)
Sets the Key of the Pair.
|
LongShortPair |
setShortValue(short value)
Sets the Value of the Pair.
|
LongShortPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic LongShortImmutablePair()
public LongShortImmutablePair(long key,
short value)
key - the key of the Pairvalue - the value of the Pairpublic LongShortPair setLongKey(long key)
LongShortPairsetLongKey in interface LongShortPairkey - the key that should be set.public long getLongKey()
getLongKey in interface LongShortPairpublic LongShortPair setShortValue(short value)
LongShortPairsetShortValue in interface LongShortPairvalue - the value that should be set.public short getShortValue()
getShortValue in interface LongShortPairpublic LongShortPair set(long key, short value)
LongShortPairset in interface LongShortPairkey - the key that should be set.value - the value that should be set.public LongShortPair shallowCopy()
LongShortPairshallowCopy in interface LongShortPairpublic 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