IntervalDataPoint
public final class IntervalDataPoint<T extends Object> extends DataPoint
| java.lang.Object | ||
| ↳ | androidx.health.services.client.data.DataPoint | |
| ↳ | androidx.health.services.client.data.IntervalDataPoint |
Data point that includes just the delta from the previous data point for dataType.
Summary
Public constructors |
|---|
Public methods |
|
|---|---|
boolean |
|
final DataPointAccuracy |
Accuracy of this DataPoint. |
@NonNull DataType<@NonNull T, @NonNull IntervalDataPoint<@NonNull T>> |
|
final @NonNull Duration |
The end of the time period this |
final @NonNull Instant |
getEndInstant(@NonNull Instant bootInstant)Returns the end |
final @NonNull Bundle |
OEM specific data. |
final @NonNull Duration |
The beginning of the time period this |
final @NonNull Instant |
getStartInstant(@NonNull Instant bootInstant)Returns the start |
final @NonNull T |
getValue()The value of this data point. |
int |
hashCode() |
Public constructors
Public methods
getDataType
public @NonNull DataType<@NonNull T, @NonNull IntervalDataPoint<@NonNull T>> getDataType()
getEndDurationFromBoot
public final @NonNull Duration getEndDurationFromBoot()
The end of the time period this DataPoint represents.
getEndInstant
public final @NonNull Instant getEndInstant(@NonNull Instant bootInstant)
Returns the end Instant of this DataPoint, knowing the time at which the system booted.
getMetadata
public final @NonNull Bundle getMetadata()
OEM specific data. In general, this should not be relied upon by non-preloaded apps.
getStartDurationFromBoot
public final @NonNull Duration getStartDurationFromBoot()
The beginning of the time period this DataPoint represents.