public class KlvFloat extends KlvNumericalDataElement<Float>
errorIndicatorValue
key, keyBytes, name, value
Constructor and Description |
---|
KlvFloat(byte[] key,
String name)
Constructs a
KlvFloat representing a KLV data element that has a float
value. |
KlvFloat(byte[] key,
String name,
Optional<Float> errorIndicatorValue)
Constructs a
KlvFloat representing a KLV data element that has a float
value. |
Modifier and Type | Method and Description |
---|---|
protected KlvFloat |
copy() |
protected void |
decodeValue(Klv klv) |
isErrorIndicated
getKey, getKeyAsString, getName, getValue
public KlvFloat(byte[] key, String name)
KlvFloat
representing a KLV data element that has a float
value.key
- the data element's keyname
- a name describing the data element's valuepublic KlvFloat(byte[] key, String name, Optional<Float> errorIndicatorValue)
KlvFloat
representing a KLV data element that has a float
value.key
- the data element's keyname
- a name describing the data element's valueerrorIndicatorValue
- value that indicates an encoded errorprotected void decodeValue(Klv klv)
decodeValue
in class KlvNumericalDataElement<Float>
protected KlvFloat copy()
copy
in class KlvNumericalDataElement<Float>
This work is licensed under a Creative Commons Attribution 4.0 International License.