@FunctionalInterface public interface IntIOSupplier
int
-valued results.
This is the IOException
throwing equivalent of IntSupplier
.Modifier and Type | Method and Description |
---|---|
static IntIOSupplier |
checked(IntSupplier supplier)
Returns a supplier that returns the result of the
supplier supplier, and unwraps any UncheckedIOException that is thrown by
throwing its cause . |
int |
getAsInt()
Gets a result.
|
static IntSupplier |
unchecked(IntIOSupplier supplier)
Returns a supplier that returns the result of the
supplier supplier, and wraps any IOException that is thrown in an
UncheckedIOException . |
int getAsInt() throws IOException
IOException
- If an I/O error occurs.static IntSupplier unchecked(IntIOSupplier 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 IntIOSupplier checked(IntSupplier 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.