MutableIntervalList

Class

Common
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

fun addInterval(size: Int, value: T)

Adds a new interval into this list.

Parameters

sizethe amount of items in the new interval.
valuethe value representing this interval.