SimpleListModel

open class SimpleListModel<T>(list: List<T>) : ListModel<T> (source)

ListModel based directly on a List.

Inheritors

Constructors

Link copied to clipboard
constructor(list: List<T>)

Properties

Link copied to clipboard
open override val size: Int

Number of elements in the model

Inherited properties

Link copied to clipboard
open val isEmpty: Boolean

Indicates whether the model has any contents

Functions

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