public class FloatIntMutablePair extends java.lang.Object implements FloatIntPair
EMPTY| Constructor and Description |
|---|
FloatIntMutablePair()
Default Constructor
|
FloatIntMutablePair(float key,
int value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
float |
getFloatKey() |
int |
getIntValue() |
int |
hashCode() |
FloatIntPair |
set(float key,
int value)
Sets key and value of the Pair
|
FloatIntPair |
setFloatKey(float key)
Sets the Key of the Pair.
|
FloatIntPair |
setIntValue(int value)
Sets the Value of the Pair.
|
FloatIntPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic FloatIntMutablePair()
public FloatIntMutablePair(float key,
int value)
key - the key of the Pairvalue - the value of the Pairpublic FloatIntPair setFloatKey(float key)
FloatIntPairsetFloatKey in interface FloatIntPairkey - the key that should be set.public float getFloatKey()
getFloatKey in interface FloatIntPairpublic FloatIntPair setIntValue(int value)
FloatIntPairsetIntValue in interface FloatIntPairvalue - the value that should be set.public int getIntValue()
getIntValue in interface FloatIntPairpublic FloatIntPair set(float key, int value)
FloatIntPairset in interface FloatIntPairkey - the key that should be set.value - the value that should be set.public FloatIntPair shallowCopy()
FloatIntPairshallowCopy in interface FloatIntPairpublic 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