Package org.apache.commons.io.function
Interface IOIntSupplier
-
- 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 IOIntSupplier
LikeIntSupplier
but throwsIOException
.- Since:
- 2.14.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.function.IntSupplier
asIntSupplier()
Creates aSupplier
for this instance that throwsUncheckedIOException
instead ofIOException
.int
getAsInt()
Gets a result.
-
-
-
Method Detail
-
asIntSupplier
default java.util.function.IntSupplier asIntSupplier()
Creates aSupplier
for this instance that throwsUncheckedIOException
instead ofIOException
.- Returns:
- an UncheckedIOException Supplier.
-
getAsInt
int getAsInt() throws java.io.IOException
Gets a result.- Returns:
- a result
- Throws:
java.io.IOException
- if an I/O error occurs.
-
-