Interface Value<T>

    • Method Detail

      • setValue

        Value<T> setValue​(T value)
        Set the measurment value
        Parameters:
        value - Value to set
      • getValue

        T getValue()
        Get the measurement value
        Returns:
        Measurement value
      • setUnit

        void setUnit​(String unit)
        Set the unit of measure
        Parameters:
        unit - Unit of measure
      • setUnit

        Value<T> setUnit​(UoM unit)
        Set the unit of measure object
        Parameters:
        unit - Unit of measure
      • getUnitObject

        UoM getUnitObject()
        Get the unit of measure object
        Returns:
        Unit of measure
      • getUnit

        String getUnit()
        Get the unit of measure
        Returns:
        Unit of measure
      • isSetValue

        default boolean isSetValue()
        Check whether the value is set
        Returns:
        true, if value is set
      • isSetUnit

        default boolean isSetUnit()
        Check whether the unit of measure is set
        Returns:
        true, if unit of measure is set