Class UnknownValue

  • All Implemented Interfaces:
    Value<Object>

    public class UnknownValue
    extends Object
    implements Value<Object>
    Unknown value for observation if type is unknown
    Since:
    1.0.0
    • Constructor Detail

      • UnknownValue

        public UnknownValue​(Object value)
        Constructor
        Parameters:
        value - Measurement value
    • Method Detail

      • setValue

        public UnknownValue setValue​(Object value)
        Description copied from interface: Value
        Set the measurment value
        Specified by:
        setValue in interface Value<Object>
        Parameters:
        value - Value to set
      • getValue

        public Object getValue()
        Description copied from interface: Value
        Get the measurement value
        Specified by:
        getValue in interface Value<Object>
        Returns:
        Measurement value
      • setUnit

        public void setUnit​(String unit)
        Description copied from interface: Value
        Set the unit of measure
        Specified by:
        setUnit in interface Value<Object>
        Parameters:
        unit - Unit of measure
      • setUnit

        public UnknownValue setUnit​(UoM unit)
        Description copied from interface: Value
        Set the unit of measure object
        Specified by:
        setUnit in interface Value<Object>
        Parameters:
        unit - Unit of measure
      • getUnit

        public String getUnit()
        Description copied from interface: Value
        Get the unit of measure
        Specified by:
        getUnit in interface Value<Object>
        Returns:
        Unit of measure
      • getUnitObject

        public UoM getUnitObject()
        Description copied from interface: Value
        Get the unit of measure object
        Specified by:
        getUnitObject in interface Value<Object>
        Returns:
        Unit of measure