orNull

fun <T> Optional<T>.orNull(): T?

Returns value or null from Optional. Useful when using kotlin-like T? and Optional.

Sources

Katlib source
Link copied to clipboard