public class ByteFloatMutablePair extends java.lang.Object implements ByteFloatPair
EMPTY| Constructor and Description |
|---|
ByteFloatMutablePair()
Default Constructor
|
ByteFloatMutablePair(byte key,
float value)
Key/Value Constructur
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
byte |
getByteKey() |
float |
getFloatValue() |
int |
hashCode() |
ByteFloatPair |
set(byte key,
float value)
Sets key and value of the Pair
|
ByteFloatPair |
setByteKey(byte key)
Sets the Key of the Pair.
|
ByteFloatPair |
setFloatValue(float value)
Sets the Value of the Pair.
|
ByteFloatPair |
shallowCopy()
Clones the Pair if it is mutable.
|
java.lang.String |
toString() |
mutable, mutable, mutable, mutableKey, mutableValue, of, of, of, ofKey, ofValuepublic ByteFloatMutablePair()
public ByteFloatMutablePair(byte key,
float value)
key - the key of the Pairvalue - the value of the Pairpublic ByteFloatPair setByteKey(byte key)
ByteFloatPairsetByteKey in interface ByteFloatPairkey - the key that should be set.public byte getByteKey()
getByteKey in interface ByteFloatPairpublic ByteFloatPair setFloatValue(float value)
ByteFloatPairsetFloatValue in interface ByteFloatPairvalue - the value that should be set.public float getFloatValue()
getFloatValue in interface ByteFloatPairpublic ByteFloatPair set(byte key, float value)
ByteFloatPairset in interface ByteFloatPairkey - the key that should be set.value - the value that should be set.public ByteFloatPair shallowCopy()
ByteFloatPairshallowCopy in interface ByteFloatPairpublic 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