public class IntFloatImmutablePair extends java.lang.Object implements IntFloatPair
EMPTY| Constructor and Description |
|---|
IntFloatImmutablePair()
Default Constructor
|
IntFloatImmutablePair(int key,
float value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
float |
getFloatValue() |
int |
getIntKey() |
int |
hashCode() |
IntFloatPair |
set(int key,
float value)
Sets key and value of the Pair
|
IntFloatPair |
setFloatValue(float value)
Sets the Value of the Pair.
|
IntFloatPair |
setIntKey(int key)
Sets the Key of the Pair.
|
IntFloatPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic IntFloatImmutablePair()
public IntFloatImmutablePair(int key,
float value)
key - the key of the Pairvalue - the value of the Pairpublic IntFloatPair setIntKey(int key)
IntFloatPairsetIntKey in interface IntFloatPairkey - the key that should be set.public int getIntKey()
getIntKey in interface IntFloatPairpublic IntFloatPair setFloatValue(float value)
IntFloatPairsetFloatValue in interface IntFloatPairvalue - the value that should be set.public float getFloatValue()
getFloatValue in interface IntFloatPairpublic IntFloatPair set(int key, float value)
IntFloatPairset in interface IntFloatPairkey - the key that should be set.value - the value that should be set.public IntFloatPair shallowCopy()
IntFloatPairshallowCopy in interface IntFloatPairpublic 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