CumulativeDataPoint
public final class CumulativeDataPoint<T extends Number> extends DataPoint
| java.lang.Object | ||
| ↳ | androidx.health.services.client.data.DataPoint | |
| ↳ | androidx.health.services.client.data.CumulativeDataPoint |
A DataPoint containing a cumulative total for the type dataType between start and end. Unlike IntervalDataPoint, this is guaranteed to increase over time (assuming the same start value.) For example, an IntervalDataPoint for DataType.STEPS
Summary
Public constructors |
|---|
<T extends Number> CumulativeDataPoint( |
Public methods |
|
|---|---|
final @NonNull Instant |
getEnd()The end of the time period this |
final @NonNull Instant |
getStart()The beginning of the time period this |
final @NonNull T |
getTotal() |
Inherited methods |
|---|
Public constructors
CumulativeDataPoint
public <T extends Number> CumulativeDataPoint(
@NonNull AggregateDataType<@NonNull T, @NonNull CumulativeDataPoint<@NonNull T>> dataType,
@NonNull T total,
@NonNull Instant start,
@NonNull Instant end
)
Public methods
getEnd
Added in 1.0.0
public final @NonNull Instant getEnd()
The end of the time period this DataPoint represents.