# IntervalList.Interval

# IntervalList.Interval

Artifact:[androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation)  
[View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/lazy/layout/IntervalList.kt+class:androidx.compose.foundation.lazy.layout.IntervalList.Interval)  
Added in[1.2.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.2.0)
Common/AllAndroid/JVM
  - Cmn  

  ```
  class IntervalList.Interval<T : Any?>
  ```

*** ** * ** ***

The interval holder.  

|                                                          See also                                                          |
|----------------------------------------------------------------------------------------------------------------------------|---|
| [get](https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/layout/IntervalList#get(kotlin.Int)) |   |

## Summary

|                            ### Public properties                            |
|-----------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [size](https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/layout/IntervalList.Interval#size()) The amount of items in the interval.                     | Cmn |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [startIndex](https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/layout/IntervalList.Interval#startIndex()) The index of the first item in the interval. | Cmn |
| `T`                                                                         | [value](https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/layout/IntervalList.Interval#value()) The value representing this interval.                  | Cmn |

## Public properties

### size

Cmn  
Added in[1.2.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.2.0)  

```
val size: Int
```

The amount of items in the interval.  

### startIndex

Cmn  
Added in[1.2.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.2.0)  

```
val startIndex: Int
```

The index of the first item in the interval.  

### value

Cmn  
Added in[1.2.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.2.0)  

```
val value: T
```

The value representing this interval.