Eager

class Eager<T>(val value: T) : Lazy<T>

Implementation of Lazy for the cases where the value needs to be eagerly created.

There are advantages to avoid laziness in some cases (e.g. failing early).

Parameters

value

eagerly computed value that Lazy.value will return.

Constructors

Link copied to clipboard
constructor(value: T)

Properties

Link copied to clipboard
open override val value: T

Functions

Link copied to clipboard
open override fun isInitialized(): Boolean