# AggregationResultGroupedByPeriod

Artifact: [androidx.health.connect:connect-client](https://developer.android.com/jetpack/androidx/releases/health-connect) [View Source](https://cs.android.com/search?q=file:androidx/health/connect/client/aggregate/AggregationResultGroupedByPeriod.kt+class:androidx.health.connect.client.aggregate.AggregationResultGroupedByPeriod) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

*** ** * ** ***


```
public final class AggregationResultGroupedByPeriod
```

<br />

*** ** * ** ***

Contains an aggregation result within a period slice.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/health/connect/client/HealthConnectClient#aggregateGroupByPeriod(androidx.health.connect.client.request.AggregateGroupByPeriodRequest)` |   |

## Summary

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResultGroupedByPeriod#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/LocalDateTime.html` | `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResultGroupedByPeriod#getEndTime()()` end time of the slice. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult` | `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResultGroupedByPeriod#getResult()()` contains `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult` with metrics included in the request. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/LocalDateTime.html` | `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResultGroupedByPeriod#getStartTime()()` start time of the slice. |
| `int` | `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResultGroupedByPeriod#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/connect/client/aggregate/AggregationResultGroupedByPeriod#toString()()` |

## Public methods

### equals

```
public boolean equals(Object other)
```

### getEndTime

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

```
public final @NonNull LocalDateTime getEndTime()
```

end time of the slice.

### getResult

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

```
public final @NonNull AggregationResult getResult()
```

contains `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult` with metrics included in the request.

### getStartTime

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

```
public final @NonNull LocalDateTime getStartTime()
```

start time of the slice.

### hashCode

```
public int hashCode()
```

### toString

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