DeltaDataType

public final class DeltaDataType<T extends Object, D extends DataPoint<@NonNull T>> extends DataType


DataType that represents a granular, non-aggregated point in time. This will map to IntervalDataPoints and SampleDataPoints.

Summary

Public constructors

<T extends Object, D extends DataPoint<@NonNull T>> DeltaDataType(
    @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

DeltaDataType

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