Lazy

class Lazy<C : Any>(type: TypeToken<in C>, getValue: () -> C) : DIContext<C>

Defines a context and its type to be used by DI

Constructors

Lazy
Link copied to clipboard
common
fun <C : Any> Lazy(type: TypeToken<in C>, getValue: () -> C)

Functions

equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
toString
Link copied to clipboard
common
open fun toString(): String

Properties

getValue
Link copied to clipboard
common
val getValue: () -> C
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.