public class FloatByteImmutablePair extends java.lang.Object implements FloatBytePair
EMPTY| Constructor and Description |
|---|
FloatByteImmutablePair()
Default Constructor
|
FloatByteImmutablePair(float key,
byte value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
byte |
getByteValue() |
float |
getFloatKey() |
int |
hashCode() |
FloatBytePair |
set(float key,
byte value)
Sets key and value of the Pair
|
FloatBytePair |
setByteValue(byte value)
Sets the Value of the Pair.
|
FloatBytePair |
setFloatKey(float key)
Sets the Key of the Pair.
|
FloatBytePair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic FloatByteImmutablePair()
public FloatByteImmutablePair(float key,
byte value)
key - the key of the Pairvalue - the value of the Pairpublic FloatBytePair setFloatKey(float key)
FloatBytePairsetFloatKey in interface FloatBytePairkey - the key that should be set.public float getFloatKey()
getFloatKey in interface FloatBytePairpublic FloatBytePair setByteValue(byte value)
FloatBytePairsetByteValue in interface FloatBytePairvalue - the value that should be set.public byte getByteValue()
getByteValue in interface FloatBytePairpublic FloatBytePair set(float key, byte value)
FloatBytePairset in interface FloatBytePairkey - the key that should be set.value - the value that should be set.public FloatBytePair shallowCopy()
FloatBytePairshallowCopy in interface FloatBytePairpublic 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