@FunctionalInterface public interface ThrowingBooleanSupplier
BooleanSupplier
that allows throwing checked exceptions. ThrowingBooleanSupplier
is usually implemented by a lambda and passed to CheckedExceptionHandler.fromBooleanSupplier(ThrowingBooleanSupplier)
. See noexception tutorial.
Modifier and Type | Method and Description |
---|---|
boolean |
getAsBoolean()
Variation of BooleanSupplier.getAsBoolean() that allows throwing checked exceptions.
|
boolean getAsBoolean() throws Throwable
BooleanSupplier.getAsBoolean()
that allows throwing checked exceptions.
BooleanSupplier.getAsBoolean()
Throwable
- if unable to complete
CheckedExceptionHandler.fromBooleanSupplier(ThrowingBooleanSupplier)
, BooleanSupplier.getAsBoolean()
Copyright © 2017–2020 Robert Važan. All rights reserved.