-
- All Known Subinterfaces:
UnaryOperatorWithException<T>
- 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 FunctionWithException<T,R>
A function interface that allows lambda expressions to throw an exception.- Author:
- Werner Donné
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <V> FunctionWithException<T,V>
andThen(FunctionWithException<? super R,? extends V> after)
R
apply(T t)
default <V> FunctionWithException<V,R>
compose(FunctionWithException<? super V,? extends T> before)
static <T> FunctionWithException<T,T>
identity()
-
-
-
Method Detail
-
identity
static <T> FunctionWithException<T,T> identity()
-
andThen
default <V> FunctionWithException<T,V> andThen(FunctionWithException<? super R,? extends V> after)
-
compose
default <V> FunctionWithException<V,R> compose(FunctionWithException<? super V,? extends T> before)
-
-