Top Description Methods
org.wildfly.common.function

public Interface ExceptionBiFunction<T, U, R, E extends java.lang.Exception>

Known Direct Subinterfaces
org.wildfly.common.function.ExceptionBinaryOperator
Known Direct Implementers
org.wildfly.common.function.Functions.ExceptionFunctionSupplierBiFunction, org.wildfly.common.function.Functions.FunctionExceptionBiFunction, org.wildfly.common.function.Functions.ExceptionFunctionBiFunction
Annotations
@FunctionalInterface
Imports
org.wildfly.common.Assert

A two-argument function which can throw an exception.
Author
David M. Lloyd

Method Summary

Modifier and TypeMethod and Description
public default <R2> ExceptionBiFunction<T, U, R2, E>
andThen(ExceptionFunction<? super R, ? extends R2, ? extends E> after)

public default ExceptionBiConsumer<T, U, E>
andThen(ExceptionConsumer<R, ? extends E> after)

public R

Returns:

the function result
apply
(T
the first argument
t
,
U
the second argument
u
)

Applies this function to the given arguments.

public default ExceptionSupplier<R, E>
compose(ExceptionSupplier<? extends T, ? extends E> before1, ExceptionSupplier<? extends U, ? extends E> before2)

Method Detail

andThenback to summary
public default <R2> ExceptionBiFunction<T, U, R2, E> andThen(ExceptionFunction<? super R, ? extends R2, ? extends E> after)
andThenback to summary
public default ExceptionBiConsumer<T, U, E> andThen(ExceptionConsumer<R, ? extends E> after)
applyback to summary
public R apply(T t, U u) throws ExceptionBiConsumer:E

Applies this function to the given arguments.

Parameters
t:T

the first argument

u:U

the second argument

Returns:R

the function result

Exceptions
ExceptionBiConsumer:E:
if an exception occurs
composeback to summary
public default ExceptionSupplier<R, E> compose(ExceptionSupplier<? extends T, ? extends E> before1, ExceptionSupplier<? extends U, ? extends E> before2)