Package org.apache.commons.io.function
Interface IOLongSupplier
-
- 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 IOLongSupplierLikeLongSupplierbut throwsIOException.- Since:
- 2.14.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.function.LongSupplierasSupplier()Creates aSupplierfor this instance that throwsUncheckedIOExceptioninstead ofIOException.longgetAsLong()Gets a result.
-
-
-
Method Detail
-
asSupplier
default java.util.function.LongSupplier asSupplier()
Creates aSupplierfor this instance that throwsUncheckedIOExceptioninstead ofIOException.- Returns:
- an UncheckedIOException Supplier.
-
getAsLong
long getAsLong() throws java.io.IOExceptionGets a result.- Returns:
- a result
- Throws:
java.io.IOException- if an I/O error occurs.
-
-