orElse

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


fun OptionalInt?.orElse(default: Int): Int(source)

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


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