AggregateDataType

public final class AggregateDataType<T extends Number, D extends DataPoint<@NonNull T>> extends DataType


DataType that represents aggregated data. This will map to CumulativeDataPoints and StatisticalDataPoints.

Summary

Public constructors

<T extends Number, D extends DataPoint<@NonNull T>> AggregateDataType(
    @NonNull String name,
    @NonNull DataType.TimeType timeType,
    @NonNull Class<@NonNull T> valueClass
)

Inherited methods

From androidx.health.services.client.data.DataType
boolean
equals(Object other)
final @NonNull String

Returns the name of this DataType, e.g. "Steps".

final @NonNull Class<@NonNull T>

Returns the underlying Class of this DataType.

int
@NonNull String

Public constructors

AggregateDataType

public <T extends Number, D extends DataPoint<@NonNull T>> AggregateDataType(
    @NonNull String name,
    @NonNull DataType.TimeType timeType,
    @NonNull Class<@NonNull T> valueClass
)