generatesEach

Generates each element for this collection property by invoking generator.


infix inline fun <Key, Value, MapType : Map<Key, Value>> KProperty1<Root, MapType>.generatesEach(noinline generator: Generator<Pair<Key, Value>>): MapEntrySpec<Key, Value, MapType>

Generates each entry for this map property by invoking generator.


Generates each element for this nested collection property path by invoking generator.


Generates each entry for this nested map property path by invoking generator.


Deprecated (with error)

Use the reified collection property generatesEach(generator) overload.

Generates each element for this collection property by invoking generator.

This low-level overload is intended for callers that already carry a KType. The caller must keep collectionType and the generator collection type consistent.


fun <Key, Value, MapType : Map<Key, Value>> KProperty1<Root, MapType>.generatesEach(generator: Generator<Pair<Key, Value>>, mapType: KType, keyType: KType, valueType: KType): MapEntrySpec<Key, Value, MapType>

Deprecated (with error)

Use the reified map property generatesEach(generator) overload.

Generates each entry for this map property by invoking generator.

This low-level overload is intended for callers that already carry KType values. The caller must keep the types and the generator types consistent.