ModelList

class ModelList<T> : MutableList<T>, Framed
kotlin.Any
   ↳ androidx.compose.frames.ModelList

Summary

Public constructors

Public methods

Boolean
add(element: T)

Unit
add(index: Int, element: T)

Boolean
addAll(index: Int, elements: Collection<T>)

Boolean
addAll(elements: Collection<T>)

Unit

Boolean
contains(element: T)

Boolean
containsAll(elements: Collection<T>)

T
get(index: Int)

Int
indexOf(element: T)

Boolean

MutableIterator<T>

Int
lastIndexOf(element: T)

MutableListIterator<T>

MutableListIterator<T>
listIterator(index: Int)

Unit

Add a new state record to the beginning of a list.

Boolean
remove(element: T)

Boolean
removeAll(elements: Collection<T>)

T
removeAt(index: Int)

Boolean
retainAll(elements: Collection<T>)

T
set(index: Int, element: T)

MutableList<T>
subList(fromIndex: Int, toIndex: Int)

Inherited extension functions

From androidx.ui.core.gesture.util.kotlin.collections.List
Boolean

Utility method that determines if any pointers are currently in bounds.

From androidx.ui.test.kotlin.collections.List
List<SemanticsNodeInteraction>

Asserts that given a list of components, its size is equal to the passed in size.

Properties

Record

The first state record in a linked list of state records.

Int

Public constructors

<init>

ModelList()

Public methods

add

fun add(element: T): Boolean

add

fun add(
    index: Int,
    element: T
): Unit

addAll

fun addAll(
    index: Int,
    elements: Collection<T>
): Boolean

addAll

fun addAll(elements: Collection<T>): Boolean

clear

fun clear(): Unit

contains

fun contains(element: T): Boolean

containsAll

fun containsAll(elements: Collection<T>): Boolean

get

fun get(index: Int): T

indexOf

fun indexOf(element: T): Int

isEmpty

fun isEmpty(): Boolean

iterator

fun iterator(): MutableIterator<T>

lastIndexOf

fun lastIndexOf(element: T): Int

listIterator

fun listIterator(): MutableListIterator<T>

listIterator

fun listIterator(index: Int): MutableListIterator<T>

prependFrameRecord

fun prependFrameRecord(value: Record): Unit

Add a new state record to the beginning of a list. After this call firstFrameRecord should be value.

remove

fun remove(element: T): Boolean

removeAll

fun removeAll(elements: Collection<T>): Boolean

removeAt

fun removeAt(index: Int): T

retainAll

fun retainAll(elements: Collection<T>): Boolean

set

fun set(
    index: Int,
    element: T
): T

subList

fun subList(
    fromIndex: Int,
    toIndex: Int
): MutableList<T>

Properties

firstFrameRecord

val firstFrameRecord: Record

The first state record in a linked list of state records.

size

val size: Int