ListCollector

abstract class ListCollector<T>(source)

Base DSL collector for accumulating an ordered list of values.

This abstract class is intended to be extended by DSL builders that collect values where ordering matters or where duplicates are allowed (e.g. feature lists, property lists).

Values are typically added using the unary + operator to provide fluent DSL syntax. The collected items are exposed only through build, ensuring immutability outside the DSL scope.

This class is marked with FF4kDsl to enforce proper DSL scoping rules.

Parameters

T

the type of elements collected by this builder

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun add(value: T)

Adds a value to the collector explicitly.

Link copied to clipboard
operator fun T.unaryPlus()

Adds this value to the collector.