@FunctionalInterface public interface BooleanIOSupplier
boolean
-valued results.
This is the IOException
throwing equivalent of BooleanSupplier
.Modifier and Type | Method and Description |
---|---|
static BooleanIOSupplier |
checked(BooleanSupplier supplier)
Returns a supplier that returns the result of the
supplier supplier, and unwraps any UncheckedIOException that is thrown by
throwing its cause . |
boolean |
getAsBoolean()
Gets a result.
|
static BooleanSupplier |
unchecked(BooleanIOSupplier supplier)
Returns a supplier that returns the result of the
supplier supplier, and wraps any IOException that is thrown in an
UncheckedIOException . |
boolean getAsBoolean() throws IOException
IOException
- If an I/O error occurs.static BooleanSupplier unchecked(BooleanIOSupplier supplier)
supplier
supplier, and wraps any IOException
that is thrown in an
UncheckedIOException
.supplier
- The supplier that will provide results for the returned supplier.supplier
supplier, and wraps any IOException
that is thrown in an
UncheckedIOException
.NullPointerException
- If supplier
is null
.static BooleanIOSupplier checked(BooleanSupplier supplier)
supplier
supplier, and unwraps any UncheckedIOException
that is thrown by
throwing its cause
.supplier
- The supplier that will provide results for the returned supplier.supplier
supplier, and unwraps any UncheckedIOException
that is thrown.NullPointerException
- If supplier
is null
.Copyright © 2017–2020. All rights reserved.