← Back to Kairo Docs|API Reference (Dokka)

OptionalBase

abstract class OptionalBase<out T : Any>

Common base for Optional and Required. Provides isSpecified and getOrThrow so code can operate on either type generically.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val isSpecified: Boolean

Functions

Link copied to clipboard
abstract fun getOrThrow(): T?