orElseGet

open fun orElseGet(other: Supplier<out T>): T

Return the object that was bound, or the result of invoking other if no value has been bound.

Return

the value, if bound, otherwise the supplied other

Parameters

other

a Supplier of the value to be returned if there is no boundvalue