Interface CheckedBooleanSupplier<E extends Exception>
- Type Parameters:
E
- exception-type if supplying fails
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Like
BooleanSupplier
but can also throw an exception.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Applies a supplier like withBooleanSupplier.getAsBoolean()
.
-
Method Details
-
getAsBoolean
boolean getAsBoolean() throws EApplies a supplier like withBooleanSupplier.getAsBoolean()
.- Returns:
- the supplied boolean.
- Throws:
E
- an exception that may be thrown
-