ObservableList

class ObservableList<ITEM : Any>(initialItems: MutableList<ITEM>, size: Int) : MutableList<ITEM>

Types

Modification
Link copied to clipboard
sealed class Modification<ITEM>

Functions

add
Link copied to clipboard
open override fun add(element: ITEM): Boolean
open override fun add(index: Int, element: ITEM)
addAll
Link copied to clipboard
open override fun addAll(elements: Collection<ITEM>): Boolean
open override fun addAll(index: Int, elements: Collection<ITEM>): Boolean
addListener
Link copied to clipboard
fun addListener(changes: (List<ObservableList.Modification<ITEM>>) -> Unit): Long
applyModifications
Link copied to clipboard
fun applyModifications(modifications: List<ObservableList.Modification<ITEM>>)
clear
Link copied to clipboard
open override fun clear()
contains
Link copied to clipboard
open operator override fun contains(element: ITEM): Boolean
containsAll
Link copied to clipboard
open override fun containsAll(elements: Collection<ITEM>): Boolean
forEach
Link copied to clipboard
open fun forEach(p0: Consumer<in ITEM>)
get
Link copied to clipboard
open operator override fun get(index: Int): ITEM
getItems
Link copied to clipboard
fun getItems(): ArrayList<ITEM>
indexOf
Link copied to clipboard
open override fun indexOf(element: ITEM): Int
isEmpty
Link copied to clipboard
open override fun isEmpty(): Boolean
iterator
Link copied to clipboard
open operator override fun iterator(): MutableIterator<ITEM>
lastIndexOf
Link copied to clipboard
open override fun lastIndexOf(element: ITEM): Int
listIterator
Link copied to clipboard
open override fun listIterator(): MutableListIterator<ITEM>
open override fun listIterator(index: Int): MutableListIterator<ITEM>
move
Link copied to clipboard
fun move(oldPosition: Int, newPosition: Int)
parallelStream
Link copied to clipboard
open fun parallelStream(): Stream<ITEM>
remove
Link copied to clipboard
open override fun remove(element: ITEM): Boolean
removeAll
Link copied to clipboard
open override fun removeAll(elements: Collection<ITEM>): Boolean
removeAt
Link copied to clipboard
open override fun removeAt(index: Int): ITEM
removeIf
Link copied to clipboard
open fun removeIf(p0: Predicate<in ITEM>): Boolean
removeListener
Link copied to clipboard
fun removeListener(handle: Long)
replaceAll
Link copied to clipboard
open fun replaceAll(p0: UnaryOperator<ITEM>)
retainAll
Link copied to clipboard
open override fun retainAll(elements: Collection<ITEM>): Boolean
set
Link copied to clipboard
open operator override fun set(index: Int, element: ITEM): ITEM
sort
Link copied to clipboard
open fun sort(p0: Comparator<in ITEM>)
spliterator
Link copied to clipboard
open override fun spliterator(): Spliterator<ITEM>
stream
Link copied to clipboard
open fun stream(): Stream<ITEM>
subList
Link copied to clipboard
open override fun subList(fromIndex: Int, toIndex: Int): MutableList<ITEM>
toArray
Link copied to clipboard
open fun <T : Any> toArray(p0: IntFunction<Array<T>>): Array<T>

Properties

initialItems
Link copied to clipboard
val initialItems: MutableList<ITEM>
size
Link copied to clipboard
open override val size: Int