Lazy

open class Lazy<T> : Supplier<T>

Holder of a value that is computed only once and lazily when getter is called.

Constructors

Link copied to clipboard
constructor(@NonNull supplier: Supplier<T>)

Functions

Link copied to clipboard
open fun get(): T
Link copied to clipboard
@Contract(value = "_ -> new", pure = true)
open fun <T> of(@NonNull supplier: Supplier<T>): Lazy<T>