@FunctionalInterface
public interface IOIntSupplier
IntSupplier
but throws IOException
.Modifier and Type | Method and Description |
---|---|
default java.util.function.IntSupplier |
asIntSupplier()
Creates a
Supplier for this instance that throws UncheckedIOException instead of IOException . |
int |
getAsInt()
Gets a result.
|
default java.util.function.IntSupplier asIntSupplier()
Supplier
for this instance that throws UncheckedIOException
instead of IOException
.int getAsInt() throws java.io.IOException
java.io.IOException
- if an I/O error occurs.