invoke

operator fun <T : Any> invoke(): Optional.Missing<T>(source)

Returns a Missing optional of type T.


operator fun <T : Any> invoke(value: T): Optional.Value<T>(source)

Returns a Value optional of type T with the given value.


@JvmName(name = "invokeNullable")
operator fun <T : Any> invoke(value: T?): Optional<T?>(source)

Returns an Optional that is either value on a non-null value, or Null on null.