public class IntIntImmutablePair extends java.lang.Object implements IntIntPair
EMPTY| Constructor and Description |
|---|
IntIntImmutablePair()
Default Constructor
|
IntIntImmutablePair(int key,
int value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getIntKey() |
int |
getIntValue() |
int |
hashCode() |
IntIntPair |
set(int key,
int value)
Sets key and value of the Pair
|
IntIntPair |
setIntKey(int key)
Sets the Key of the Pair.
|
IntIntPair |
setIntValue(int value)
Sets the Value of the Pair.
|
IntIntPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic IntIntImmutablePair()
public IntIntImmutablePair(int key,
int value)
key - the key of the Pairvalue - the value of the Pairpublic IntIntPair setIntKey(int key)
IntIntPairsetIntKey in interface IntIntPairkey - the key that should be set.public int getIntKey()
getIntKey in interface IntIntPairpublic IntIntPair setIntValue(int value)
IntIntPairsetIntValue in interface IntIntPairvalue - the value that should be set.public int getIntValue()
getIntValue in interface IntIntPairpublic IntIntPair set(int key, int value)
IntIntPairset in interface IntIntPairkey - the key that should be set.value - the value that should be set.public IntIntPair shallowCopy()
IntIntPairshallowCopy in interface IntIntPairpublic 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