NullableInitBox

value class NullableInitBox<T>(_value: Any? = Uninitialized)(source)

Used to wrap immutable nullable values whose holder may not yet be initialized. Check isInitialized to see if the value has been assigned.

Constructors

Link copied to clipboard
constructor(_value: Any? = Uninitialized)

Types

Link copied to clipboard

Properties

Link copied to clipboard

Whether or not a value has been set for this NullableInitBox

Functions

Link copied to clipboard
fun getOrThrow(): T

Get the value this has been initialized with.