Class KlvNumericalDataElement<T extends Number>

java.lang.Object
org.codice.ddf.libs.klv.KlvDataElement<T>
org.codice.ddf.libs.klv.data.numerical.KlvNumericalDataElement<T>
Direct Known Subclasses:
KlvByte, KlvDouble, KlvFloat, KlvInt, KlvIntegerEncodedFloatingPoint, KlvLong, KlvShort, KlvUnsignedByte, KlvUnsignedShort

public abstract class KlvNumericalDataElement<T extends Number> extends KlvDataElement<T>
Represents a data element with a numerical value.
  • Field Details

    • errorIndicatorValue

      protected final Optional<T extends Number> errorIndicatorValue
  • Constructor Details

    • KlvNumericalDataElement

      public KlvNumericalDataElement(byte[] key, String name)
      Constructs a KlvNumericalDataElement that describes how to interpret the value of a numerical element with the given key.
      Parameters:
      key - the data element's key
      name - a name describing the data element's value
      Throws:
      IllegalArgumentException - if any arguments are null
    • KlvNumericalDataElement

      public KlvNumericalDataElement(byte[] key, String name, Optional<T> errorIndicatorValue)
      Constructs a KlvNumericalDataElement that describes how to interpret the value of a numerical element with the given key.
      Parameters:
      key - the data element's key
      name - a name describing the data element's value
      errorIndicatorValue - value that indicates an encoded error
      Throws:
      IllegalArgumentException - if any arguments are null
  • Method Details