public final class Measurement extends Object
Constructor and Description |
---|
Measurement(Id id,
long timestamp,
double value)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
Id |
id()
Identifier for the measurement.
|
long |
timestamp()
The timestamp in milliseconds since the epoch for when the measurement was taken.
|
String |
toString() |
double |
value()
Value for the measurement.
|
public Measurement(Id id, long timestamp, double value)
public Id id()
public long timestamp()
public double value()