Package org.wildfly.common.function
Interface ExceptionBiFunction<T,U,R,E extends Exception>
- All Known Subinterfaces:
ExceptionBinaryOperator<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 two-argument function which can throw an exception.
- Author:
- David M. Lloyd
-
Method Summary
Modifier and TypeMethodDescriptiondefault ExceptionBiConsumer<T,U, E> andThen(ExceptionConsumer<R, ? extends E> after) default <R2> ExceptionBiFunction<T,U, R2, E> andThen(ExceptionFunction<? super R, ? extends R2, ? extends E> after) Applies this function to the given arguments.default ExceptionSupplier<R,E> compose(ExceptionSupplier<? extends T, ? extends E> before1, ExceptionSupplier<? extends U, ? extends E> before2)
-
Method Details
-
apply
Applies this function to the given arguments.- Parameters:
t- the first argumentu- the second argument- Returns:
- the function result
- Throws:
E- if an exception occurs
-
andThen
default <R2> ExceptionBiFunction<T,U, andThenR2, E> (ExceptionFunction<? super R, ? extends R2, ? extends E> after) -
andThen
-
compose
default ExceptionSupplier<R,E> compose(ExceptionSupplier<? extends T, ? extends E> before1, ExceptionSupplier<? extends U, ? extends E> before2)
-