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