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.

@FunctionalInterface public interface CheckedBooleanSupplier<E extends Exception>
Like BooleanSupplier but can also throw an exception.
Author:
Owen Feehan
  • Method Details

    • getAsBoolean

      boolean getAsBoolean() throws E
      Applies a supplier like with BooleanSupplier.getAsBoolean().
      Returns:
      the supplied boolean.
      Throws:
      E - an exception that may be thrown