Package io.opencensus.stats
Class Measurement.MeasurementLong
java.lang.Object
io.opencensus.stats.Measurement
io.opencensus.stats.Measurement.MeasurementLong
- Direct Known Subclasses:
AutoValue_Measurement_MeasurementLong
- Enclosing class:
Measurement
Long
typed Measurement
.- Since:
- 0.8
-
Nested Class Summary
Nested classes/interfaces inherited from class io.opencensus.stats.Measurement
Measurement.MeasurementDouble, Measurement.MeasurementLong
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Measurement.MeasurementLong
create
(Measure.MeasureLong measure, long value) Constructs a newMeasurement.MeasurementLong
.abstract Measure.MeasureLong
Extracts the measuredMeasure
.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.
-
Constructor Details
-
MeasurementLong
MeasurementLong()
-
-
Method Details
-
create
Constructs a newMeasurement.MeasurementLong
.- Since:
- 0.8
-
getMeasure
Description copied from class:Measurement
Extracts the measuredMeasure
.- Specified by:
getMeasure
in classMeasurement
-
getValue
public abstract long 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
-