V - the keyType of elements maintained by this Collectionpublic class FloatObjectImmutablePair<V> extends java.lang.Object implements FloatObjectPair<V>
EMPTY| Constructor and Description |
|---|
FloatObjectImmutablePair()
Default Constructor
|
FloatObjectImmutablePair(float key,
V value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
float |
getFloatKey() |
V |
getValue() |
int |
hashCode() |
FloatObjectPair<V> |
set(float key,
V value)
Sets key and value of the Pair
|
FloatObjectPair<V> |
setFloatKey(float key)
Sets the Key of the Pair.
|
FloatObjectPair<V> |
setValue(V value)
Sets the Value of the Pair.
|
FloatObjectPair<V> |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic FloatObjectImmutablePair()
public FloatObjectImmutablePair(float key,
V value)
key - the key of the Pairvalue - the value of the Pairpublic FloatObjectPair<V> setFloatKey(float key)
FloatObjectPairsetFloatKey in interface FloatObjectPair<V>key - the key that should be set.public float getFloatKey()
getFloatKey in interface FloatObjectPair<V>public FloatObjectPair<V> setValue(V value)
FloatObjectPairsetValue in interface FloatObjectPair<V>value - the value that should be set.public V getValue()
getValue in interface FloatObjectPair<V>public FloatObjectPair<V> set(float key, V value)
FloatObjectPairset in interface FloatObjectPair<V>key - the key that should be set.value - the value that should be set.public FloatObjectPair<V> shallowCopy()
FloatObjectPairshallowCopy in interface FloatObjectPair<V>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