public final class Measurement
extends java.lang.Object
| Constructor and Description |
|---|
Measurement(Id id,
long timestamp,
double value)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.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.
|
java.lang.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()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object