CollectionState

State for collections (i.e. values represented by collection schemas).

Implementations of this interface are responsible for storing the states associated with the children of a collection.

Inheritors

Functions

Link copied to clipboard

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

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

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

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

Removes the state of the child matching the provided fragment.

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

Sets the state of the child matching the provided fragment.