DataType.TimeType


public final class DataType.TimeType


Whether the DataType corresponds to a measurement spanning an interval, or a sample at a single point in time.

Summary

Public fields

static final @NonNull DataType.TimeType

TimeType that indicates the DataType has a value that represents an interval of time with a beginning and end.

static final @NonNull DataType.TimeType

TimeType that indicates the DataType has a value that represents a single point in time.

static final @NonNull DataType.TimeType

The TimeType is unknown or this library is too old to know about it.

Public methods

boolean
equals(Object other)
final int
final @NonNull String
int
@NonNull String

Public fields

INTERVAL

public static final @NonNull DataType.TimeType INTERVAL

TimeType that indicates the DataType has a value that represents an interval of time with a beginning and end. For example, number of steps taken over a span of time.

SAMPLE

public static final @NonNull DataType.TimeType SAMPLE

TimeType that indicates the DataType has a value that represents a single point in time. For example, heart rate reading at a specific time.

UNKNOWN

public static final @NonNull DataType.TimeType UNKNOWN

The TimeType is unknown or this library is too old to know about it.

Public methods

equals

public boolean equals(Object other)

getId

Added in 1.0.0
public final int getId()

getName

Added in 1.0.0
public final @NonNull String getName()

hashCode

public int hashCode()

toString

public @NonNull String toString()