List Property
class ListProperty<I, O>(initial: MutableList<I> = mutableListOf(), getTransform: DslMutableList<O>.(I) -> O, setTransform: DslMutableList<O>.(O) -> I, beforeGet: DslMutableList<O>.(Int) -> Unit = {}, beforeSet: DslMutableList<O>.(Int, O) -> Unit = { _, _ -> }, beforeRemove: DslMutableList<O>.(Int) -> Unit = {}, beforeAccess: DslMutableList<O>.() -> Unit = {}, beforeReplace: DslMutableList<O>.(MutableList<O>) -> Unit = {}, accessTransform: DslMutableList<O>.() -> MutableList<O> = { this }, getDslMutableList: (DslMutableList<O>) -> Unit = {}) : AbstractDslMutableList<I, O> , DslReadWriteListProperty<O> (source)
Constructors
Link copied to clipboard
constructor(initial: MutableList<I> = mutableListOf(), getTransform: DslMutableList<O>.(I) -> O, setTransform: DslMutableList<O>.(O) -> I, beforeGet: DslMutableList<O>.(Int) -> Unit = {}, beforeSet: DslMutableList<O>.(Int, O) -> Unit = { _, _ -> }, beforeRemove: DslMutableList<O>.(Int) -> Unit = {}, beforeAccess: DslMutableList<O>.() -> Unit = {}, beforeReplace: DslMutableList<O>.(MutableList<O>) -> Unit = {}, accessTransform: DslMutableList<O>.() -> MutableList<O> = { this }, getDslMutableList: (DslMutableList<O>) -> Unit = {})
Properties
Link copied to clipboard
Link copied to clipboard
The delegate list that stores the original type I values. This is mutable and can be replaced with a new list.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Gets the value of the property as a mutable list of type T. The operations on this list is under the control of the DSL. DO NOT use this list when extracting the final list, as it will not be transformed.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Replaces the current list with a new one.
Link copied to clipboard
Link copied to clipboard