Package org.wildfly.common.function
Interface ExceptionFunction<T,R,E extends Exception>
- All Known Subinterfaces:
ExceptionUnaryOperator<T,E>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A one-argument function which can throw an exception.
- Author:
- David M. Lloyd
-
Method Summary
Modifier and TypeMethodDescriptiondefault ExceptionConsumer<T,E> andThen(ExceptionBiConsumer<? super T, ? super R, ? extends E> after) default <R2> ExceptionFunction<T,R2, E> andThen(ExceptionBiFunction<? super T, ? super R, ? extends R2, ? extends E> after) default ExceptionPredicate<T,E> andThen(ExceptionBiPredicate<? super T, ? super R, ? extends E> after) default ExceptionConsumer<T,E> andThen(ExceptionConsumer<? super R, ? extends E> after) default <R2> ExceptionFunction<T,R2, E> andThen(ExceptionFunction<? super R, ? extends R2, ? extends E> after) default ExceptionPredicate<T,E> andThen(ExceptionPredicate<? super R, ? extends E> after) Applies this function to the given arguments.default <T2> ExceptionFunction<T2,R, E> compose(ExceptionFunction<? super T2, ? extends T, ? extends E> before) default ExceptionSupplier<R,E> compose(ExceptionSupplier<? extends T, ? extends E> before)
-
Method Details
-
apply
Applies this function to the given arguments.- Parameters:
t- the argument- Returns:
- the function result
- Throws:
E- if an exception occurs
-
andThen
default <R2> ExceptionFunction<T,R2, andThenE> (ExceptionFunction<? super R, ? extends R2, ? extends E> after) -
andThen
default <R2> ExceptionFunction<T,R2, andThenE> (ExceptionBiFunction<? super T, ? super R, ? extends R2, ? extends E> after) -
compose
default <T2> ExceptionFunction<T2,R, composeE> (ExceptionFunction<? super T2, ? extends T, ? extends E> before) -
andThen
-
andThen
-
andThen
-
andThen
default ExceptionPredicate<T,E> andThen(ExceptionBiPredicate<? super T, ? super R, ? extends E> after) -
compose
-