orElseGet

open override fun orElseGet(supplier: BooleanSupplier): Boolean
open override fun orElseGet(supplier: Supplier<Boolean>): Boolean

Gets the value of this tri-state. If the value is DEFAULT then use the supplied value.

Return

the value of the tri-state or the value of the supplier if the tri-state is DEFAULT.

Author

fzzyhmstrs

Since

0.6.5

Parameters

supplier

the supplier used to get the value to fall back to