T - The data value.public class TimedData<T> extends Object implements tec.uom.lib.common.function.Nameable, Supplier<T>
| Modifier | Constructor and Description |
|---|---|
protected |
TimedData(T value,
long time)
Construct an instance of TimedData with a value and timestamp.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
T |
get() |
Instant |
getInstant() |
String |
getName() |
long |
getTimestamp()
Returns the time with which this TimedData was created.
|
int |
hashCode() |
static <T> TimedData<T> |
of(T val,
long time)
Returns an
MeasurementRange with the specified values. |
String |
toString() |
public static <T> TimedData<T> of(T val, long time)
MeasurementRange with the specified values.T - the class of the valueval - The minimum value for the measurement range.time - The maximum value for the measurement range.MeasurementRange with the given valuespublic long getTimestamp()
public String getName()
getName in interface tec.uom.lib.common.function.Nameablepublic Instant getInstant()
Copyright © 2005–2017 Units of Measurement project. All rights reserved.