Package io.opencensus.stats
Class Measurement.MeasurementDouble
- java.lang.Object
-
- io.opencensus.stats.Measurement
-
- io.opencensus.stats.Measurement.MeasurementDouble
-
- Direct Known Subclasses:
AutoValue_Measurement_MeasurementDouble
- Enclosing class:
- Measurement
@Immutable public abstract static class Measurement.MeasurementDouble extends Measurement
Double
typedMeasurement
.- Since:
- 0.8
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.opencensus.stats.Measurement
Measurement.MeasurementDouble, Measurement.MeasurementLong
-
-
Constructor Summary
Constructors Constructor Description MeasurementDouble()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Measurement.MeasurementDouble
create(Measure.MeasureDouble measure, double value)
Constructs a newMeasurement.MeasurementDouble
.abstract Measure.MeasureDouble
getMeasure()
Extracts the measuredMeasure
.abstract double
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.
-
-
-
Method Detail
-
create
public static Measurement.MeasurementDouble create(Measure.MeasureDouble measure, double value)
Constructs a newMeasurement.MeasurementDouble
.- Since:
- 0.8
-
getMeasure
public abstract Measure.MeasureDouble getMeasure()
Description copied from class:Measurement
Extracts the measuredMeasure
.- Specified by:
getMeasure
in classMeasurement
-
getValue
public abstract double getValue()
Returns the value for the measure.- Returns:
- the value for the measure.
- Since:
- 0.8
-
match
public <T> T match(Function<? super Measurement.MeasurementDouble,T> p0, Function<? super Measurement.MeasurementLong,T> p1, Function<? super Measurement,T> defaultFunction)
Description copied from class:Measurement
Applies the given match function to the underlying data type.- Specified by:
match
in classMeasurement
-
-