OneOf9

sealed interface OneOf9<out T1, out T2, out T3, out T4, out T5, out T6, out T7, out T8, out T9> : OneOf(source)

Nine-way discriminated union.

Inheritors

Types

Link copied to clipboard

Represents the first alternative of the union. @property value payload chosen for the first branch.

Link copied to clipboard

Represents the second alternative of the union. @property value payload chosen for the second branch.

Link copied to clipboard

Represents the third alternative of the union. @property value payload chosen for the third branch.

Link copied to clipboard

Represents the fourth alternative of the union. @property value payload chosen for the fourth branch.

Link copied to clipboard

Represents the fifth alternative of the union. @property value payload chosen for the fifth branch.

Link copied to clipboard

Represents the sixth alternative of the union. @property value payload chosen for the sixth branch.

Link copied to clipboard

Represents the seventh alternative of the union. @property value payload chosen for the seventh branch.

Link copied to clipboard

Represents the eighth alternative of the union. @property value payload chosen for the eighth branch.

Link copied to clipboard

Represents the ninth alternative of the union. @property value payload chosen for the ninth branch.

Functions

Link copied to clipboard
open fun <R> select(when1: (T1) -> R, when2: (T2) -> R, when3: (T3) -> R, when4: (T4) -> R, when5: (T5) -> R, when6: (T6) -> R, when7: (T7) -> R, when8: (T8) -> R, when9: (T9) -> R): R

Exhaustively handles the stored value by delegating to the matching lambda.