T - the type of elements maintained by this Collectionpublic class ObjectFloatMutablePair<T> extends java.lang.Object implements ObjectFloatPair<T>
EMPTY| Constructor and Description |
|---|
ObjectFloatMutablePair()
Default Constructor
|
ObjectFloatMutablePair(T key,
float value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
float |
getFloatValue() |
T |
getKey() |
int |
hashCode() |
ObjectFloatPair<T> |
set(T key,
float value)
Sets key and value of the Pair
|
ObjectFloatPair<T> |
setFloatValue(float value)
Sets the Value of the Pair.
|
ObjectFloatPair<T> |
setKey(T key)
Sets the Key of the Pair.
|
ObjectFloatPair<T> |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic ObjectFloatMutablePair()
public ObjectFloatMutablePair(T key, float value)
key - the key of the Pairvalue - the value of the Pairpublic ObjectFloatPair<T> setKey(T key)
ObjectFloatPairsetKey in interface ObjectFloatPair<T>key - the key that should be set.public T getKey()
getKey in interface ObjectFloatPair<T>public ObjectFloatPair<T> setFloatValue(float value)
ObjectFloatPairsetFloatValue in interface ObjectFloatPair<T>value - the value that should be set.public float getFloatValue()
getFloatValue in interface ObjectFloatPair<T>public ObjectFloatPair<T> set(T key, float value)
ObjectFloatPairset in interface ObjectFloatPair<T>key - the key that should be set.value - the value that should be set.public ObjectFloatPair<T> shallowCopy()
ObjectFloatPairshallowCopy in interface ObjectFloatPair<T>public 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