MutableTreeModel

Inherited properties

Link copied to clipboard
abstract val changed: Pool<ModelObserver<T>>

Functions

Link copied to clipboard
abstract fun add(path: Path<Int>, value: T)
Link copied to clipboard
abstract fun addAll(path: Path<Int>, values: Collection<T>)
Link copied to clipboard
abstract fun clear()
Link copied to clipboard
abstract fun removeAllAt(paths: Collection<Path<Int>>)
Link copied to clipboard
abstract fun removeAt(path: Path<Int>): Result<T>
Link copied to clipboard
abstract operator fun set(path: Path<Int>, value: T): Result<T>

Inherited functions

Link copied to clipboard
abstract fun child(of: Path<Int>, path: Int): Result<T>
Link copied to clipboard
abstract fun children(parent: Path<Int>): Iterator<T>
Link copied to clipboard
abstract operator fun get(path: Path<Int>): Result<T>
Link copied to clipboard
abstract fun indexOfChild(parent: Path<Int>, child: T): Int
Link copied to clipboard
abstract fun isEmpty(): Boolean
Link copied to clipboard
abstract fun isLeaf(node: Path<Int>): Boolean
Link copied to clipboard
open fun isNotEmpty(): Boolean
Link copied to clipboard
fun <T, R> TreeModel<T>.map(mapper: (T) -> R): TreeModel<R>
Link copied to clipboard
abstract fun numChildren(of: Path<Int>): Int