IMutableViewableList

interface IMutableViewableList<V : Any> : MutableList<V> , IViewableList<V>

Functions

Link copied to clipboard
abstract override fun add(element: V): Boolean
abstract fun add(index: Int, element: V)
Link copied to clipboard
abstract override fun addAll(elements: Collection<V>): Boolean
abstract fun addAll(index: Int, elements: Collection<V>): Boolean
Link copied to clipboard
abstract fun advise(lifetime: Lifetime, handler: (IViewableList.Event<V>) -> Unit)

Adds an event subscription. Every time an event occurs, the handler is called, receiving an instance of the event. The subscription is removed when the given lifetime expires.

Link copied to clipboard
open fun adviseAddRemove(lifetime: Lifetime, handler: (AddRemove, Int, V) -> Unit)

Adds a subscription to additions and removals of list elements. When a list element is updated, the handler is called twice: to report the removal of the old element and the addition of the new one.

Link copied to clipboard
abstract override fun clear()
Link copied to clipboard
abstract operator override fun contains(element: V): Boolean
Link copied to clipboard
abstract override fun containsAll(elements: Collection<V>): Boolean
Link copied to clipboard
open fun forEach(p0: Consumer<in V>)
Link copied to clipboard
abstract operator fun get(index: Int): V
Link copied to clipboard
abstract fun indexOf(element: V): Int
Link copied to clipboard
abstract override fun isEmpty(): Boolean
Link copied to clipboard
abstract operator override fun iterator(): Iterator<V>
Link copied to clipboard
abstract fun lastIndexOf(element: V): Int
Link copied to clipboard
abstract override fun listIterator(): MutableListIterator<V>
abstract override fun listIterator(index: Int): MutableListIterator<V>
Link copied to clipboard
open fun parallelStream(): Stream<V>
Link copied to clipboard
abstract override fun remove(element: V): Boolean
Link copied to clipboard
abstract override fun removeAll(elements: Collection<V>): Boolean
Link copied to clipboard
abstract fun removeAt(index: Int): V
Link copied to clipboard
open fun removeIf(p0: Predicate<in V>): Boolean
Link copied to clipboard
open fun replaceAll(p0: UnaryOperator<V>)
Link copied to clipboard
abstract override fun retainAll(elements: Collection<V>): Boolean
Link copied to clipboard
abstract operator fun set(index: Int, element: V): V
Link copied to clipboard
open fun sort(p0: Comparator<in V>)
Link copied to clipboard
open override fun spliterator(): Spliterator<V>
Link copied to clipboard
open fun stream(): Stream<V>
Link copied to clipboard
abstract override fun subList(fromIndex: Int, toIndex: Int): MutableList<V>
Link copied to clipboard
open fun <T : Any> toArray(p0: IntFunction<Array<T>>): Array<T>
Link copied to clipboard
open override fun view(lifetime: Lifetime, handler: (Lifetime, Pair<Int, V>) -> Unit)

Adds a subscription to changes of the contents of the list.

open fun view(lifetime: Lifetime, handler: (Lifetime, Int, V) -> Unit)

Adds a subscription to changes of the contents of the list, receiving the index and value as separate parameters.

Properties

Link copied to clipboard
abstract val change: ISource<IViewableList.Event<V>>
Link copied to clipboard
open val changing: Boolean
Link copied to clipboard
abstract override val size: Int

Inheritors

Link copied to clipboard