public class LongIntImmutablePair extends java.lang.Object implements LongIntPair
EMPTY| Constructor and Description |
|---|
LongIntImmutablePair()
Default Constructor
|
LongIntImmutablePair(long key,
int value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getIntValue() |
long |
getLongKey() |
int |
hashCode() |
LongIntPair |
set(long key,
int value)
Sets key and value of the Pair
|
LongIntPair |
setIntValue(int value)
Sets the Value of the Pair.
|
LongIntPair |
setLongKey(long key)
Sets the Key of the Pair.
|
LongIntPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic LongIntImmutablePair()
public LongIntImmutablePair(long key,
int value)
key - the key of the Pairvalue - the value of the Pairpublic LongIntPair setLongKey(long key)
LongIntPairsetLongKey in interface LongIntPairkey - the key that should be set.public long getLongKey()
getLongKey in interface LongIntPairpublic LongIntPair setIntValue(int value)
LongIntPairsetIntValue in interface LongIntPairvalue - the value that should be set.public int getIntValue()
getIntValue in interface LongIntPairpublic LongIntPair set(long key, int value)
LongIntPairset in interface LongIntPairkey - the key that should be set.value - the value that should be set.public LongIntPair shallowCopy()
LongIntPairshallowCopy in interface LongIntPairpublic 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