@Immutable public abstract static class AggregationData.SumDataDouble extends AggregationData
MeasureValueDouble
s.AggregationData.CountData, AggregationData.DistributionData, AggregationData.MeanData, AggregationData.SumDataDouble, AggregationData.SumDataLong
Modifier and Type | Method and Description |
---|---|
static AggregationData.SumDataDouble |
create(double sum)
Creates a
SumDataDouble . |
abstract double |
getSum()
Returns the aggregated sum.
|
<T> T |
match(Function<? super AggregationData.SumDataDouble,T> p0,
Function<? super AggregationData.SumDataLong,T> p1,
Function<? super AggregationData.CountData,T> p2,
Function<? super AggregationData.MeanData,T> p3,
Function<? super AggregationData.DistributionData,T> p4,
Function<? super AggregationData,T> defaultFunction)
Applies the given match function to the underlying data type.
|
public static AggregationData.SumDataDouble create(double sum)
SumDataDouble
.sum
- the aggregated sum.SumDataDouble
.public abstract double getSum()
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.MeanData,T> p3, Function<? super AggregationData.DistributionData,T> p4, Function<? super AggregationData,T> defaultFunction)
AggregationData
match
in class AggregationData