---
title: "MutableIntervalList"
description: "Mutable version of [IntervalList]. It allows you to add new intervals via [addInterval].

Note: this class is a part of [LazyLayout] harness that allows for building custom lazy layouts.
LazyLayout and all corresponding APIs are still under development and are subject to change."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
class MutableIntervalList<T> : IntervalList<T>
```


Mutable version of `IntervalList`. It allows you to add new intervals via `addInterval`.

Note: this class is a part of `LazyLayout` harness that allows for building custom lazy layouts.
LazyLayout and all corresponding APIs are still under development and are subject to change.


## Functions

```kotlin
fun addInterval(size: Int, value: T)
```


Adds a new interval into this list.

#### Parameters

| | |
| --- | --- |
| size | the amount of items in the new interval. |
| value | the value representing this interval. |




