Omissible

@Serializable(with = OmissableSerializer::class)
interface Omissible<out T>

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class Omitted<out T> : Omissible<T>
Link copied to clipboard
value class Present<out T>(val value: T) : Omissible<T>

Functions

Link copied to clipboard
inline fun <T, R> Omissible<T>.ifPresent(function: (T) -> R): R?
Link copied to clipboard
inline fun <T, R> Omissible<T?>.ifPresentAndNotNull(function: (T) -> R): R?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T, R> Omissible<T>.map(mapper: (T) -> R): Omissible<R>
Link copied to clipboard
fun <T> Omissible<T>.takeIfPresent(predicate: (T) -> Boolean = { true }): T?