Class Measurement
java.lang.Object
io.opencensus.stats.Measurement
- Direct Known Subclasses:
Measurement.MeasurementDouble, Measurement.MeasurementLong
Immutable representation of a Measurement.
- Since:
- 0.8
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDoubletypedMeasurement.static classLongtypedMeasurement. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract MeasureExtracts the measuredMeasure.abstract <T> Tmatch(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.
-
Constructor Details
-
Measurement
private Measurement()
-
-
Method Details
-
match
public abstract <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.- Since:
- 0.8
-
getMeasure
-