ListModel

interface ListModel<T> : Iterable<T> (source)

Holds data in a list-like structure for use with controls like List.

Inheritors

Properties

Link copied to clipboard
open val isEmpty: Boolean

Indicates whether the model has any contents

Link copied to clipboard
abstract val size: Int

Number of elements in the model

Functions

Link copied to clipboard
abstract fun contains(value: T): Boolean
Link copied to clipboard
abstract operator fun get(index: Int): Result<T>
Link copied to clipboard
abstract fun section(range: ClosedRange<Int>): List<T>

Inherited functions

Link copied to clipboard
abstract operator fun iterator(): Iterator<T>