ObservableList

class ObservableList<ITEM : Any>(initialItems: List<ITEM> = emptyList()) : MutableList<ITEM> , AutoCloseable(source)

A list of items that can be observed for changes like add, remove, set, etc. Typically passed to renderEach.

Constructors

Link copied to clipboard
constructor(initialItems: List<ITEM> = emptyList())

Types

Link copied to clipboard
sealed class Modification<ITEM>

Properties

Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard
open override fun add(element: ITEM): Boolean
open override fun add(index: Int, element: ITEM)
Link copied to clipboard
open override fun addAll(elements: Collection<ITEM>): Boolean
open override fun addAll(index: Int, elements: Collection<ITEM>): Boolean
Link copied to clipboard
fun addCloseListener(listener: () -> Unit): Long
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun clear()
Link copied to clipboard
open override fun close()
Link copied to clipboard
open operator override fun contains(element: ITEM): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<ITEM>): Boolean
Link copied to clipboard
open fun forEach(p0: Consumer<in ITEM>)
Link copied to clipboard
open operator override fun get(index: Int): ITEM
Link copied to clipboard
Link copied to clipboard
open override fun indexOf(element: ITEM): Int
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): MutableIterator<ITEM>

Returns an iterator over the elements in this list (in proper sequence).

Link copied to clipboard
open override fun lastIndexOf(element: ITEM): Int
Link copied to clipboard
open override fun listIterator(): MutableListIterator<ITEM>

Returns a list iterator over the elements in this list (in proper sequence).

open override fun listIterator(index: Int): MutableListIterator<ITEM>

Returns a list iterator over the elements in this list (in proper sequence), starting at the specified position.

Link copied to clipboard
fun move(oldPosition: Int, newPosition: Int)
Link copied to clipboard
Link copied to clipboard
open override fun remove(element: ITEM): Boolean
Link copied to clipboard
open override fun removeAll(elements: Collection<ITEM>): Boolean
Link copied to clipboard
open override fun removeAt(index: Int): ITEM
Link copied to clipboard
Link copied to clipboard
open fun removeIf(p0: Predicate<in ITEM>): Boolean
Link copied to clipboard
fun removeListener(handle: Long)
Link copied to clipboard
Link copied to clipboard
open override fun retainAll(elements: Collection<ITEM>): Boolean
Link copied to clipboard
open operator override fun set(index: Int, element: ITEM): ITEM
Link copied to clipboard
open fun sort(p0: Comparator<in ITEM>)
Link copied to clipboard
open override fun spliterator(): Spliterator<ITEM>
Link copied to clipboard
open fun stream(): Stream<ITEM>
Link copied to clipboard
open override fun subList(fromIndex: Int, toIndex: Int): MutableList<ITEM>
Link copied to clipboard
open fun <T : Any> toArray(p0: IntFunction<Array<T>>): Array<T>