InSet

fun <T : Any> DI.Builder.TypeBinder<T>.InSet(setTypeToken: TypeToken<Set<T>>): TypeBinderInSet<T, Set<T>>

Allows to bind in an existing set binding (rather than directly as a new binding).

First part of the bind<Type>().inSet() with binding syntax.

Parameters

T

The provided type of all bindings in the set.

setTypeToken

The type of the bound set.