Readonly Observable List
abstract class ReadonlyObservableList<T> : ValueObservable<List<T>> , Iterable<T>
Content copied to clipboard
An observable List implementation.
Constructors
Link copied to clipboard
Creates an ReadonlyObservableList.
Functions
Link copied to clipboard
Adds a listener silently.
Link copied to clipboard
fun addListenerAndInvoke(initialValue: List<T>, listener: (List<T>, List<T>) -> Unit)
Content copied to clipboard
Adds a listener and calls ValueObserver.update on this new listener with given initial value.
Link copied to clipboard
Removes all listeners.
Link copied to clipboard
Returns true
if this list contains elements.
Link copied to clipboard
Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element.
Link copied to clipboard
Removes a listener.
Link copied to clipboard
Creates a fail-fastSpliterator over the elements in this list.