public class IntLongMutablePair extends java.lang.Object implements IntLongPair
EMPTY| Constructor and Description |
|---|
IntLongMutablePair()
Default Constructor
|
IntLongMutablePair(int key,
long value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getIntKey() |
long |
getLongValue() |
int |
hashCode() |
IntLongPair |
set(int key,
long value)
Sets key and value of the Pair
|
IntLongPair |
setIntKey(int key)
Sets the Key of the Pair.
|
IntLongPair |
setLongValue(long value)
Sets the Value of the Pair.
|
IntLongPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic IntLongMutablePair()
public IntLongMutablePair(int key,
long value)
key - the key of the Pairvalue - the value of the Pairpublic IntLongPair setIntKey(int key)
IntLongPairsetIntKey in interface IntLongPairkey - the key that should be set.public int getIntKey()
getIntKey in interface IntLongPairpublic IntLongPair setLongValue(long value)
IntLongPairsetLongValue in interface IntLongPairvalue - the value that should be set.public long getLongValue()
getLongValue in interface IntLongPairpublic IntLongPair set(int key, long value)
IntLongPairset in interface IntLongPairkey - the key that should be set.value - the value that should be set.public IntLongPair shallowCopy()
IntLongPairshallowCopy in interface IntLongPairpublic 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