@Immutable public abstract class Measurement extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Measurement.MeasurementDouble
double typed Measurement. |
static class |
Measurement.MeasurementLong
long typed Measurement. |
| Modifier and Type | Method and Description |
|---|---|
double |
getDoubleValue()
Returns the double value for the
Measurement. |
long |
getLongValue()
Returns the long value for the
Measurement. |
abstract Measure |
getMeasure()
Extracts the measured
Measure. |
public abstract Measure getMeasure()
Measure.Measure if this measurement.public double getDoubleValue()
Measurement.
This method should only be called with Measurement.MeasurementDouble.
UnsupportedOperationException - if the Measure type is not Measure.Type.DOUBLE.public long getLongValue()
Measurement.
This method should only be called with Measurement.MeasurementLong.
UnsupportedOperationException - if the Measure type is not Measure.Type.LONG.