Module com.aoapps.servlet.util
Package com.aoapps.servlet.function
Interface ServletFunctionE<T,R,Ex extends Throwable>
- Type Parameters:
Ex
- An arbitrary exception type that may be thrown
- All Known Subinterfaces:
ServletFunction<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.
A function that is allowed to throw
ServletException
, IOException
, and a checked exception.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault <V> ServletFunctionE
<T, V, Ex> andThen
(ServletFunctionE<? super R, ? extends V, ? extends Ex> after) default <V> ServletFunctionE
<V, R, Ex> compose
(ServletFunctionE<? super V, ? extends T, ? extends Ex> before) static <T> ServletFunctionE
<T, T, RuntimeException> identity()
-
Method Details
-
apply
- Throws:
ServletException
IOException
Ex
-
compose
default <V> ServletFunctionE<V,R, composeEx> (ServletFunctionE<? super V, ? extends T, throws ServletException, IOException, Ex? extends Ex> before) - Throws:
ServletException
IOException
Ex
-
andThen
default <V> ServletFunctionE<T,V, andThenEx> (ServletFunctionE<? super R, ? extends V, throws ServletException, IOException, Ex? extends Ex> after) - Throws:
ServletException
IOException
Ex
-
identity
-