AbsentOption

interface AbsentOption<T, R>(source)

Sub option step in case the subject is absent

Parameters

T

The type of the subject of the expectation

R

The resulting type which should be created.

Inheritors

Properties

Link copied to clipboard
abstract val ifDefined: (T) -> R

The previously defined factory in case the subject of the expectation is defined.

Functions

Link copied to clipboard
open infix fun ifAbsent(failureHintFactory: () -> R): Pair<() -> R, (T) -> R>

Defines the failure hint factory which should be used if the subject of the expectation is not defined.