Package org.apache.commons.io.function

# 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
Like `BooleanSupplier` but throws `IOException`.

Since:
  2.19.0

- ## Method Summary

  Modifier and Type
  Method
  Description
  `default BooleanSupplier`
  `asBooleanSupplier()`
  Creates a `Supplier` for this instance that throws `UncheckedIOException` instead of `IOException`.
  `boolean`
  `getAsBoolean()`
  Gets a result.

- ## Method Details

  - ### asBooleanSupplier

    default BooleanSupplier asBooleanSupplier()
    Creates a `Supplier` for this instance that throws `UncheckedIOException` instead of `IOException`.
    Returns:
      an UncheckedIOException Supplier.

  - ### getAsBoolean

    boolean getAsBoolean() throws IOException
    Gets a result.
    Returns:
      a result
    Throws:
      `IOException` - if an I/O error occurs.