# DataType.TimeType

Artifact: [androidx.health:health-services-client](https://developer.android.com/jetpack/androidx/releases/health) [View Source](https://cs.android.com/search?q=file:androidx/health/services/client/data/DataType.kt+class:androidx.health.services.client.data.DataType.TimeType) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)

*** ** * ** ***


```
public final class DataType.TimeType
```

<br />

*** ** * ** ***

Whether the `https://developer.android.com/reference/androidx/health/services/client/data/DataType` corresponds to a measurement spanning an interval, or a sample at a single point in time.

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DataType.TimeType` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType.TimeType#INTERVAL()` TimeType that indicates the DataType has a value that represents an interval of time with a beginning and end. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DataType.TimeType` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType.TimeType#SAMPLE()` TimeType that indicates the DataType has a value that represents a single point in time. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/services/client/data/DataType.TimeType` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType.TimeType#UNKNOWN()` The `https://developer.android.com/reference/androidx/health/services/client/data/DataType.TimeType` is unknown or this library is too old to know about it. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType.TimeType#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final int` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType.TimeType#getId()()` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType.TimeType#getName()()` |
| `int` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType.TimeType#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/health/services/client/data/DataType.TimeType#toString()()` |

## 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 `https://developer.android.com/reference/androidx/health/services/client/data/DataType.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](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)

```
public final int getId()
```

### getName

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/health#1.0.0)

```
public final @NonNull String getName()
```

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```