orElseThrow

boolean orElseThrow<X extends Throwable>(Supplier<X> exceptionSupplier)

Gets the value of this tri-state, or throws an exception if this tri-state's value is DEFAULT.

Return

the value

Parameters

exceptionSupplier

the supplying function that produces an exception to be thrown

<X>

Type of the exception to be thrown

Throws

if the value is DEFAULT

Sources

jvm source
Link copied to clipboard