Class TimedQuantityData<Q extends javax.measure.Quantity<Q>>

  • All Implemented Interfaces:
    Supplier<javax.measure.Quantity<Q>>, tech.uom.lib.common.function.Nameable

    public class TimedQuantityData<Q extends javax.measure.Quantity<Q>>
    extends TimedData<javax.measure.Quantity<Q>>
    • Constructor Detail

      • TimedQuantityData

        protected TimedQuantityData​(javax.measure.Quantity<Q> value,
                                    long time)
    • Method Detail

      • of

        public static <Q extends javax.measure.Quantity<Q>> TimedQuantityData<Q> of​(javax.measure.Quantity<Q> quant,
                                                                                    long time)
        Returns a TimedQuantityData with the specified values.
        Type Parameters:
        Q - the quantity of the value
        Parameters:
        val - The value for the timed data.
        time - The timestamp.
        Returns:
        an TimedQuantityData with the given values