TypeBinderSubTypes

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

Parameters

T

The type of the binding in the set.

Functions

Link copied to clipboard
fun <C : Any, A> With(contextType: TypeToken<in C>, argType: TypeToken<in A>, createdType: TypeToken<out T>, block: (TypeToken<out T>) -> <Error class: unknown class><in C, in A, out T>)

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

Link copied to clipboard
infix inline fun <C : Any, A : Any, T : Any> TypeBinderSubTypes<T>.with(noinline block: (TypeToken<out T>) -> <Error class: unknown class><in C, in A, out T>)

Allows to define a binding that will be called for any subtype of this type.