Missing

Represents an Int field that was not present in the serialized entity.

Properties

Link copied to clipboard
Link copied to clipboard

returns null if this is null, calls OptionalDouble.asNullable otherwise.

Link copied to clipboard
Link copied to clipboard

returns null if this is null or OptionalDouble.Missing, calls OptionalDouble.Value.value otherwise.

Functions

Link copied to clipboard

returns the value of the optional or throws a IllegalStateException if the optional doesn't contain a value or is null.

Link copied to clipboard
inline fun OptionalDouble.map(mapper: (Double) -> Double): OptionalDouble
Link copied to clipboard
fun orElse(default: Double): Double

returns default if the optional is Missing, or Value.value if is Value.

Link copied to clipboard
fun OptionalDouble?.orElse(default: Int): Int

returns default if this is null, calls OptionalDouble.asNullable otherwise.

Link copied to clipboard
open override fun toString(): String