public class BooleanFloatImmutablePair extends java.lang.Object implements BooleanFloatPair
EMPTY| Constructor and Description |
|---|
BooleanFloatImmutablePair()
Default Constructor
|
BooleanFloatImmutablePair(boolean key,
float value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
getBooleanKey() |
float |
getFloatValue() |
int |
hashCode() |
BooleanFloatPair |
set(boolean key,
float value)
Sets key and value of the Pair
|
BooleanFloatPair |
setBooleanKey(boolean key)
Sets the Key of the Pair.
|
BooleanFloatPair |
setFloatValue(float value)
Sets the Value of the Pair.
|
BooleanFloatPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic BooleanFloatImmutablePair()
public BooleanFloatImmutablePair(boolean key,
float value)
key - the key of the Pairvalue - the value of the Pairpublic BooleanFloatPair setBooleanKey(boolean key)
BooleanFloatPairsetBooleanKey in interface BooleanFloatPairkey - the key that should be set.public boolean getBooleanKey()
getBooleanKey in interface BooleanFloatPairpublic BooleanFloatPair setFloatValue(float value)
BooleanFloatPairsetFloatValue in interface BooleanFloatPairvalue - the value that should be set.public float getFloatValue()
getFloatValue in interface BooleanFloatPairpublic BooleanFloatPair set(boolean key, float value)
BooleanFloatPairset in interface BooleanFloatPairkey - the key that should be set.value - the value that should be set.public BooleanFloatPair shallowCopy()
BooleanFloatPairshallowCopy in interface BooleanFloatPairpublic 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