Module com.aoapps.lang
Package com.aoapps.lang.io.function
Interface IOFunctionE<T,R,Ex extends Throwable>
-
- Type Parameters:
Ex- An arbitrary exception type that may be thrown
- All Known Subinterfaces:
IOFunction<T,R>
- 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 IOFunctionE<T,R,Ex extends Throwable>
A function that is allowed to throwIOExceptionand a checked exception.- See Also:
Function
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <V> IOFunctionE<T,V,Ex>andThen(IOFunctionE<? super R,? extends V,? extends Ex> after)Rapply(T t)default <V> IOFunctionE<V,R,Ex>compose(IOFunctionE<? super V,? extends T,? extends Ex> before)static <T,Ex extends Throwable>
IOFunctionE<T,T,Ex>identity()
-
-
-
Method Detail
-
apply
R apply(T t) throws IOException, Ex extends Throwable
- Throws:
IOExceptionEx extends Throwable
-
compose
default <V> IOFunctionE<V,R,Ex> compose(IOFunctionE<? super V,? extends T,? extends Ex> before) throws IOException, Ex extends Throwable
- Throws:
IOExceptionEx extends Throwable
-
andThen
default <V> IOFunctionE<T,V,Ex> andThen(IOFunctionE<? super R,? extends V,? extends Ex> after) throws IOException, Ex extends Throwable
- Throws:
IOExceptionEx extends Throwable
-
identity
static <T,Ex extends Throwable> IOFunctionE<T,T,Ex> identity()
- Type Parameters:
Ex- An arbitrary exception type that may be thrown
-
-