ObservableList

open class ObservableList<T> : List<E> (source)

A list which allows for notifying a single observer on state change.

Parameters

<T>

the type of elements of this list.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun add(t: T): Boolean
open fun add(index: Int, element: T)
Link copied to clipboard
open fun addAll(@NotNull c: @NotNull Collection<out T>): Boolean
open fun addAll(index: Int, @NotNull c: @NotNull Collection<out T>): Boolean
Link copied to clipboard
open fun clear()
Link copied to clipboard
open fun contains(o: Any): Boolean
Link copied to clipboard
open fun containsAll(@NotNull c: @NotNull Collection<out Any>): Boolean
Link copied to clipboard
open fun <E> copyOf(coll: Collection<out E>): List<E>
Link copied to clipboard
open fun forEach(action: Consumer<in T>)
Link copied to clipboard
open fun get(index: Int): T
Link copied to clipboard
open fun indexOf(o: Any): Int
Link copied to clipboard
open fun isEmpty(): Boolean
Link copied to clipboard
@NotNull
open fun iterator(): @NotNull Iterator<T>
abstract fun iterator(): Iterator<T>
Link copied to clipboard
open fun lastIndexOf(o: Any): Int
Link copied to clipboard
@NotNull
open fun listIterator(): @NotNull ListIterator<T>
@NotNull
open fun listIterator(index: Int): @NotNull ListIterator<T>
Link copied to clipboard
open fun <E> of(): List<E>
Link copied to clipboard
open fun parallelStream(): Stream<E>
Link copied to clipboard
open fun remove(index: Int): T
open fun remove(o: Any): Boolean
Link copied to clipboard
open fun removeAll(@NotNull c: @NotNull Collection<out Any>): Boolean
Link copied to clipboard
open fun removeIf(filter: Predicate<in E>): Boolean
Link copied to clipboard
open fun replaceAll(operator: UnaryOperator<E>)
Link copied to clipboard
open fun retainAll(@NotNull c: @NotNull Collection<out Any>): Boolean
Link copied to clipboard
open fun set(index: Int, element: T): T
Link copied to clipboard
open fun size(): Int
Link copied to clipboard
open fun sort(c: Comparator<in E>)
Link copied to clipboard
Link copied to clipboard
open fun stream(): Stream<E>
Link copied to clipboard
@NotNull
open fun subList(fromIndex: Int, toIndex: Int): @NotNull List<T>
Link copied to clipboard
@NotNull
open fun toArray(): Array<@NotNull Any>
@NotNull
open fun <T1> toArray(@NotNull a: Array<@NotNull T1>): Array<@NotNull T1>
Link copied to clipboard
open fun update()
Explicitly notify the current observer of an update.