Optional

value class Optional<out E>(value: Any?)

Constructors

Link copied to clipboard
constructor(value: Any?)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun <R> flatMap(body: (E) -> Optional<R>): Optional<R>
Link copied to clipboard
fun get(): E
Link copied to clipboard
fun <T> Optional<T>.getOrElse(defaultValue: T): T
Link copied to clipboard
Link copied to clipboard
fun <R> map(body: (E) -> R): Optional<R>
Link copied to clipboard