Value

data class Value<C : Any>(type: TypeToken<in C>, value: C) : DIContext<C>

Defines a context and its type to be used by DI

Constructors

Value
Link copied to clipboard
common
fun <C : Any> Value(type: TypeToken<in C>, value: C)

Properties

type
Link copied to clipboard
common
open override val type: TypeToken<in C>
The type of the context, used to lookup corresponding bindings.
value
Link copied to clipboard
common
open override val value: C
The context itself.