@Immutable public abstract static class Measurement.MeasurementLong extends Measurement
Long
typed Measurement
.Measurement.MeasurementDouble, Measurement.MeasurementLong
Modifier and Type | Method and Description |
---|---|
static Measurement.MeasurementLong |
create(Measure.MeasureLong measure,
long value)
Constructs a new
Measurement.MeasurementLong . |
abstract Measure.MeasureLong |
getMeasure()
Extracts the measured
Measure . |
abstract long |
getValue()
Returns the value for the measure.
|
<T> T |
match(Function<? super Measurement.MeasurementDouble,T> p0,
Function<? super Measurement.MeasurementLong,T> p1,
Function<? super Measurement,T> defaultFunction)
Applies the given match function to the underlying data type.
|
public static Measurement.MeasurementLong create(Measure.MeasureLong measure, long value)
Measurement.MeasurementLong
.public abstract Measure.MeasureLong getMeasure()
Measurement
Measure
.getMeasure
in class Measurement
public abstract long getValue()
public <T> T match(Function<? super Measurement.MeasurementDouble,T> p0, Function<? super Measurement.MeasurementLong,T> p1, Function<? super Measurement,T> defaultFunction)
Measurement
match
in class Measurement