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 ofBooleanSupplierthat allows throwing checked exceptions.ThrowingBooleanSupplieris 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 booleangetAsBoolean()Variation ofBooleanSupplier.getAsBoolean()that allows throwing checked exceptions.
-
-
-
Method Detail
-
getAsBoolean
boolean getAsBoolean() throws ThrowableVariation ofBooleanSupplier.getAsBoolean()that allows throwing checked exceptions.- Returns:
-
see
BooleanSupplier.getAsBoolean() - Throws:
-
Throwable- if unable to complete - See Also:
-
CheckedExceptionHandler.fromBooleanSupplier(ThrowingBooleanSupplier),BooleanSupplier.getAsBoolean()
-
-