# WorkInfo.PeriodicityInfo

Artifact: [androidx.work:work-runtime](https://developer.android.com/jetpack/androidx/releases/work) [View Source](https://cs.android.com/search?q=file:androidx/work/WorkInfo.kt+class:androidx.work.WorkInfo.PeriodicityInfo) Added in [2.9.0](https://developer.android.com/jetpack/androidx/releases/work#2.9.0)

*** ** * ** ***


```
public final class WorkInfo.PeriodicityInfo
```

<br />

*** ** * ** ***

A periodic work's interval and flex duration

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/work/WorkInfo.PeriodicityInfo#PeriodicityInfo(kotlin.Long,kotlin.Long)(long repeatIntervalMillis, long flexIntervalMillis)` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/work/WorkInfo.PeriodicityInfo#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final long` | `https://developer.android.com/reference/androidx/work/WorkInfo.PeriodicityInfo#getFlexIntervalMillis()()` The duration in millis in which this work repeats from the end of the `repeatInterval`, as configured in `https://developer.android.com/reference/androidx/work/PeriodicWorkRequest.Builder`. |
| `final long` | `https://developer.android.com/reference/androidx/work/WorkInfo.PeriodicityInfo#getRepeatIntervalMillis()()` The periodic work's configured repeat interval in millis, as configured in `https://developer.android.com/reference/androidx/work/PeriodicWorkRequest.Builder` |
| `int` | `https://developer.android.com/reference/androidx/work/WorkInfo.PeriodicityInfo#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/work/WorkInfo.PeriodicityInfo#toString()()` |

## Public constructors

### PeriodicityInfo

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

```
public PeriodicityInfo(long repeatIntervalMillis, long flexIntervalMillis)
```

## Public methods

### equals

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

### getFlexIntervalMillis

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

```
public final long getFlexIntervalMillis()
```

The duration in millis in which this work repeats from the end of the `repeatInterval`, as configured in `https://developer.android.com/reference/androidx/work/PeriodicWorkRequest.Builder`.

### getRepeatIntervalMillis

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

```
public final long getRepeatIntervalMillis()
```

The periodic work's configured repeat interval in millis, as configured in `https://developer.android.com/reference/androidx/work/PeriodicWorkRequest.Builder`

### hashCode

```
public int hashCode()
```

### toString

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