@Immutable public abstract static class AggregationData.LastValueDataLong extends AggregationData
MeasureValueLongs.AggregationData.CountData, AggregationData.DistributionData, AggregationData.LastValueDataDouble, AggregationData.LastValueDataLong, AggregationData.MeanData, AggregationData.SumDataDouble, AggregationData.SumDataLong| Modifier and Type | Method and Description |
|---|---|
static AggregationData.LastValueDataLong |
create(long lastValue)
Creates a
LastValueDataLong. |
abstract long |
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.
|
public static AggregationData.LastValueDataLong create(long lastValue)
LastValueDataLong.lastValue - the last value.LastValueDataLong.public abstract long getLastValue()
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)
AggregationDatamatch in class AggregationData