ValueContainer

interface ValueContainer<T>

Sealed class representing the result of a getValue operation. Contains either a present value or indicates that no value was provided.

Parameters

T

The type of the value being retrieved.

Inheritors

Properties

Link copied to clipboard
abstract val isPresent: Boolean

True if the container holds a value, false otherwise.

Functions

Link copied to clipboard
abstract fun value(): T

Retrieves the present value from the container.