@Immutable public abstract static class AggregationData.SumDataLong extends AggregationData
MeasureValueLong
s.AggregationData.CountData, AggregationData.DistributionData, AggregationData.LastValueDataDouble, AggregationData.LastValueDataLong, AggregationData.MeanData, AggregationData.SumDataDouble, AggregationData.SumDataLong
Modifier and Type | Method and Description |
---|---|
static AggregationData.SumDataLong |
create(long sum)
Creates a
SumDataLong . |
abstract long |
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.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.
|
public static AggregationData.SumDataLong create(long sum)
SumDataLong
.sum
- the aggregated sum.SumDataLong
.public abstract long 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.DistributionData,T> p3, Function<? super AggregationData.LastValueDataDouble,T> p4, Function<? super AggregationData.LastValueDataLong,T> p5, Function<? super AggregationData,T> defaultFunction)
AggregationData
match
in class AggregationData