Package io.opencensus.stats
Class AggregationData.LastValueDataDouble
- java.lang.Object
-
- io.opencensus.stats.AggregationData
-
- io.opencensus.stats.AggregationData.LastValueDataDouble
-
- Direct Known Subclasses:
AutoValue_AggregationData_LastValueDataDouble
- Enclosing class:
- AggregationData
@Immutable public abstract static class AggregationData.LastValueDataDouble extends AggregationData
The last value of aggregatedMeasureValueDouble
s.- Since:
- 0.13
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.opencensus.stats.AggregationData
AggregationData.CountData, AggregationData.DistributionData, AggregationData.LastValueDataDouble, AggregationData.LastValueDataLong, AggregationData.MeanData, AggregationData.SumDataDouble, AggregationData.SumDataLong
-
-
Constructor Summary
Constructors Constructor Description LastValueDataDouble()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static AggregationData.LastValueDataDouble
create(double lastValue)
Creates aLastValueDataDouble
.abstract double
getLastValue()
Returns the last value.<T> T
match(Function<? super AggregationData.SumDataDouble,T> p0, Function<? super AggregationData.SumDataLong,T> p1, Function<? super AggregationData.CountData,T> p2, Function<? super AggregationData.DistributionData,T> p3, Function<? super AggregationData.LastValueDataDouble,T> p4, Function<? super AggregationData.LastValueDataLong,T> p5, Function<? super AggregationData,T> defaultFunction)
Applies the given match function to the underlying data type.
-
-
-
Method Detail
-
create
public static AggregationData.LastValueDataDouble create(double lastValue)
Creates aLastValueDataDouble
.- Parameters:
lastValue
- the last value.- Returns:
- a
LastValueDataDouble
. - Since:
- 0.13
-
getLastValue
public abstract double getLastValue()
Returns the last value.- Returns:
- the last value.
- Since:
- 0.13
-
match
public final <T> T match(Function<? super AggregationData.SumDataDouble,T> p0, Function<? super AggregationData.SumDataLong,T> p1, Function<? super AggregationData.CountData,T> p2, Function<? super AggregationData.DistributionData,T> p3, Function<? super AggregationData.LastValueDataDouble,T> p4, Function<? super AggregationData.LastValueDataLong,T> p5, Function<? super AggregationData,T> defaultFunction)
Description copied from class:AggregationData
Applies the given match function to the underlying data type.- Specified by:
match
in classAggregationData
-
-