orElseGet

boolean orElseGet(BooleanSupplier supplier)

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.

Parameters

supplier

the supplier used to get the value to fallback to

Sources

jvm source
Link copied to clipboard