Interface IOBooleanSupplier

  • 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 IOBooleanSupplier
    Represents a supplier of boolean-valued results. This is the boolean-producing primitive specialization of IOSupplier.

    This interface is similar to BooleanSupplier except that it is allowed to throw an IOException.

    Author:
    Magno N A Cruz
    See Also:
    IOSupplier
    • Method Detail

      • getAsBoolean

        boolean getAsBoolean()
                      throws java.io.IOException

        This method is the same as BooleanSupplier.getAsBoolean(), but with a support for IOException.

        Returns:
        A result.
        Throws:
        java.io.IOException - if there is an I/O error performing the operation.