Module com.machinezoo.noexception
Interface ThrowingBooleanSupplier
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ThrowingBooleanSupplier
Variation ofBooleanSupplier
that allows throwing checked exceptions.ThrowingBooleanSupplier
is usually implemented by a lambda and passed toCheckedExceptionHandler.fromBooleanSupplier(ThrowingBooleanSupplier)
. See noexception tutorial.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
getAsBoolean()
Variation ofBooleanSupplier.getAsBoolean()
that allows throwing checked exceptions.
-
-
-
Method Detail
-
getAsBoolean
boolean getAsBoolean() throws Throwable
Variation ofBooleanSupplier.getAsBoolean()
that allows throwing checked exceptions.- Returns:
-
see
BooleanSupplier.getAsBoolean()
- Throws:
-
Throwable
- if unable to complete - See Also:
-
CheckedExceptionHandler.fromBooleanSupplier(ThrowingBooleanSupplier)
,BooleanSupplier.getAsBoolean()
-
-