PresentValueContainer

class PresentValueContainer<T>(val value: T) : ValueContainer<T>

Represents a container with a present value.

Parameters

value

The present value to be contained.

Constructors

Link copied to clipboard
constructor(value: T)

Properties

Link copied to clipboard
open override val isPresent: Boolean = true

True if the container holds a value, false otherwise.

Link copied to clipboard
val value: T

Functions

Link copied to clipboard
open override fun value(): T

Retrieves the present value from the container.