Package tech.units.indriya.quantity.time
Class TimedQuantityData<Q extends javax.measure.Quantity<Q>>
- java.lang.Object
-
- tech.units.indriya.quantity.time.TimedData<javax.measure.Quantity<Q>>
-
- tech.units.indriya.quantity.time.TimedQuantityData<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 Summary
Constructors Modifier Constructor Description protectedTimedQuantityData(javax.measure.Quantity<Q> value, long time)
-
Method Summary
Modifier and Type Method Description static <Q extends javax.measure.Quantity<Q>>
TimedQuantityData<Q>of(javax.measure.Quantity<Q> quant, long time)Returns aTimedQuantityDatawith the specified values.-
Methods inherited from class tech.units.indriya.quantity.time.TimedData
equals, get, getInstant, getName, getTimestamp, hashCode, of, of, toString
-
-
-
-
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 aTimedQuantityDatawith the specified values.- Type Parameters:
Q- the quantity of the value- Parameters:
val- The value for the timed data.time- The timestamp.- Returns:
- an
TimedQuantityDatawith the given values
-
-