ListState

class ListState(elementsSchema: Schema<*>) : CollectionState(source)

Class responsible for holding the states of the children of a list.

Constructors

Link copied to clipboard
constructor(elementsSchema: Schema<*>)

Functions

Link copied to clipboard
open override fun childrenStates(path: AbsolutePath, fragment: AbsolutePathFragment): Sequence<StateInfo<*>>

Returns a sequence over the children states of the "parent" value at path matching the provided fragment.

Link copied to clipboard
open override fun hasState(fragment: AbsolutePathFragment.Id): Boolean

Returns whether there exists a state for a child matching the provided fragment.

Link copied to clipboard
open override fun removeState(fragment: AbsolutePathFragment.Id)

Removes the state of the child matching the provided fragment.

Link copied to clipboard
open override fun setState(fragment: AbsolutePathFragment.Id, state: State?)

Sets the state of the child matching the provided fragment.