@FunctionalInterface
public interface IOExceptionFunction<F,T>
| Modifier and Type | Method and Description |
|---|---|
T |
apply(F input)
Applies the function to the given input.
|
static <F,T> java.util.function.Function<F,T> |
asFunction(IOExceptionFunction<F,T> f)
Wraps a function that may throw an IO Exception throwing an
UncheckedIOException. |
@Nullable T apply(@Nullable F input) throws java.io.IOException
input - the inputjava.io.IOExceptionstatic <F,T> java.util.function.Function<F,T> asFunction(IOExceptionFunction<F,T> f)
UncheckedIOException.f - the function