public class FloatBooleanImmutablePair extends java.lang.Object implements FloatBooleanPair
EMPTY| Constructor and Description |
|---|
FloatBooleanImmutablePair()
Default Constructor
|
FloatBooleanImmutablePair(float key,
boolean value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
getBooleanValue() |
float |
getFloatKey() |
int |
hashCode() |
FloatBooleanPair |
set(float key,
boolean value)
Sets key and value of the Pair
|
FloatBooleanPair |
setBooleanValue(boolean value)
Sets the Value of the Pair.
|
FloatBooleanPair |
setFloatKey(float key)
Sets the Key of the Pair.
|
FloatBooleanPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic FloatBooleanImmutablePair()
public FloatBooleanImmutablePair(float key,
boolean value)
key - the key of the Pairvalue - the value of the Pairpublic FloatBooleanPair setFloatKey(float key)
FloatBooleanPairsetFloatKey in interface FloatBooleanPairkey - the key that should be set.public float getFloatKey()
getFloatKey in interface FloatBooleanPairpublic FloatBooleanPair setBooleanValue(boolean value)
FloatBooleanPairsetBooleanValue in interface FloatBooleanPairvalue - the value that should be set.public boolean getBooleanValue()
getBooleanValue in interface FloatBooleanPairpublic FloatBooleanPair set(float key, boolean value)
FloatBooleanPairset in interface FloatBooleanPairkey - the key that should be set.value - the value that should be set.public FloatBooleanPair shallowCopy()
FloatBooleanPairshallowCopy in interface FloatBooleanPairpublic 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