bindSet

inline fun <T : Any> DI.Builder.bindSet(tag: Any? = null, overrides: Boolean? = null)

Creates a set: multiple bindings can be added in this set.

T generics will be erased!

Return

A set binding ready to be bound.

Parameters

T

The created type.


inline fun <T : Any> DI.Builder.bindSet(tag: Any? = null, overrides: Boolean? = null, noinline creator: DI.Builder.SetBinder<T>.() -> Unit)

Creates a set and add multiple bindings to it.

T generics will be erased!

Parameters

T

The created type.

creator

The builder that should add binding in the set.