class ObservableListWrapper<T> : MutableList<T>, ObservableList<T>, ObservableState<List<T>>
Simple observable list implementation.
(js)
<init> |
Simple observable list implementation. ObservableListWrapper(mutableList: MutableList<T> = mutableListOf()) |
(js)
mutableList |
val mutableList: MutableList<T> |
(js)
onUpdate |
val onUpdate: MutableCollection<(MutableList<T>) -> Unit> |
(js)
size |
val size: Int |
(js)
add |
fun add(element: T): Boolean fun add(index: Int, element: T): Unit |
(js)
addAll |
fun addAll(elements: Collection<T>): Boolean fun addAll(index: Int, elements: Collection<T>): Boolean |
(js)
clear |
fun clear(): Unit |
(js)
contains |
fun contains(element: T): Boolean |
(js)
containsAll |
fun containsAll(elements: Collection<T>): Boolean |
(js)
get |
fun get(index: Int): T |
(js)
getState |
Get current state. fun getState(): List<T> |
(js)
indexOf |
fun indexOf(element: T): Int |
(js)
isEmpty |
fun isEmpty(): Boolean |
(js)
iterator |
fun iterator(): MutableIterator<T> |
(js)
lastIndexOf |
fun lastIndexOf(element: T): Int |
(js)
listIterator |
fun listIterator(): MutableListIterator<T> fun listIterator(index: Int): MutableListIterator<T> |
(js)
remove |
fun remove(element: T): Boolean |
(js)
removeAll |
fun removeAll(elements: Collection<T>): Boolean |
(js)
removeAt |
fun removeAt(index: Int): T |
(js)
retainAll |
fun retainAll(elements: Collection<T>): Boolean |
(js)
set |
fun set(index: Int, element: T): T |
(js)
subList |
fun subList(fromIndex: Int, toIndex: Int): MutableList<T> |
(js)
subscribe |
Subscribe for the state change notifications. fun subscribe(observer: (List<T>) -> Unit): () -> Unit |
(js)
stateFlow |
Extension property returning StateFlow for an ObservableState. val <S> ObservableState<S>.stateFlow: StateFlow<S> |