SimpleTreeModel

open class SimpleTreeModel<T, N : TreeNode<T>>(val root: N) : TreeModel<T> (source)

Inheritors

Constructors

Link copied to clipboard
constructor(root: N)

Properties

Link copied to clipboard
protected val root: N

Functions

Link copied to clipboard
open override fun child(of: Path<Int>, path: Int): Result<T>
Link copied to clipboard
open override fun children(parent: Path<Int>): Iterator<T>
Link copied to clipboard
open operator override fun get(path: Path<Int>): Result<T>
Link copied to clipboard
open override fun indexOfChild(parent: Path<Int>, child: T): Int
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open override fun isLeaf(node: Path<Int>): Boolean
Link copied to clipboard
open override fun numChildren(of: Path<Int>): Int

Inherited functions

Link copied to clipboard
open fun isNotEmpty(): Boolean
Link copied to clipboard
fun <T, R> TreeModel<T>.map(mapper: (T) -> R): TreeModel<R>