configureCollection

inline fun <CollectionType : Collection<*>> configureCollection(unique: Boolean = false, noinline convert: (List<Any?>) -> CollectionType)

Configures how generated elements are materialized as collection type CollectionType.


fun configureCollection(type: KType, convert: (List<Any?>) -> Collection<*>)

Deprecated (with error)

Use the reified configureCollection<CollectionType>(convert) overload. This overload will be removed in 1.0.0.

Configures how generated elements are materialized as collection type type.

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


fun configureCollection(type: KType, convert: (List<Any?>) -> Collection<*>, unique: Boolean)

Deprecated (with error)

Use the reified configureCollection<CollectionType>(unique, convert) overload.

Configures how generated elements are materialized as collection type type.

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