Class ScaleValueItem


  • public final class ScaleValueItem
    extends Object
    This object is wrapping the value retrieved by the scale.
    The value could be a double, string or a date.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • getDataType

        public ScaleDataType getDataType()
        Returns the data type of value.
        Returns:
        the data type of value
      • getValue

        public double getValue()
        Returns the value for the scale if it is or Undefined.DOUBLE.
        Returns:
        the value for the scale if it is or Undefined.DOUBLE
      • getValueAsDate

        public Date getValueAsDate()
        Returns the value for the scale as FloatingData if it is or null.
        Returns:
        the value for the scale as FloatingData if it is or null
      • getValueAsString

        public String getValueAsString()
        Returns the value for the scale as string if it is or Undefined.STRING.
        Returns:
        the value for the scale as string if it is or Undefined.STRING.
      • getLabel

        public String getLabel()
        Returns the label of the value used on the scale.
        Returns:
        the label of the value used on the scale