Top Description Methods
io.smallrye.common.function

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

Known Direct Subinterfaces
io.smallrye.common.function.ExceptionBinaryOperator
Known Direct Implementers
io.smallrye.common.function.Functions.ExceptionFunctionSupplierBiFunction, io.smallrye.common.function.Functions.FunctionExceptionBiFunction, io.smallrye.common.function.Functions.ExceptionFunctionBiFunction
Annotations
@FunctionalInterface
Type Parameters
<T>
the first argument type
<U>
the second argument type
<R>
the result type
<E>
the exception type
Imports
io.smallrye.common.constraint.Assert

A two-argument function which can throw an exception.

Method Summary

Modifier and TypeMethod and Description
public default <
the intermediate result type
R2
>
ExceptionBiFunction<T, U, R2, E>

Returns:

a function which passes the result of this function through the given function
andThen
(ExceptionFunction<? super R, ? extends R2, ? extends E>
the next function (must not be null)
after
)

Returns a function which passes the result of this function through the given function.

public default ExceptionBiConsumer<T, U, E>

Returns:

a consumer which passes the value given to the given consumer through this function
andThen
(ExceptionConsumer<R, ? extends E>
the consumer (must not be null)
after
)

Returns a consumer which passes the value given to the given consumer through this function.

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>

Returns:

a supplier which passes the results of the given suppliers through this function
compose
(ExceptionSupplier<? extends T, ? extends E>
the supplier for the first argument (must not be null)
before1
,
ExceptionSupplier<? extends U, ? extends E>
the supplier for the second argument (must not be null)
before2
)

Returns a supplier which passes the results of the given suppliers through this function.

Method Detail

andThenback to summary
public default <R2> ExceptionBiFunction<T, U, R2, E> andThen(ExceptionFunction<? super R, ? extends R2, ? extends E> after)

Returns a function which passes the result of this function through the given function.

Parameters
<R2>
the intermediate result type
after:ExceptionFunction<? super R, ? extends R2, ? extends E>

the next function (must not be null)

Returns:ExceptionBiFunction<T, U, R2, E>

a function which passes the result of this function through the given function

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

Returns a consumer which passes the value given to the given consumer through this function.

Parameters
after:ExceptionConsumer<R, ? extends E>

the consumer (must not be null)

Returns:ExceptionBiConsumer<T, U, E>

a consumer which passes the value given to the given consumer through this function

applyback to summary
public R apply(T t, U u) throws ExceptionPredicate: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
ExceptionPredicate: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)

Returns a supplier which passes the results of the given suppliers through this function.

Parameters
before1:ExceptionSupplier<? extends T, ? extends E>

the supplier for the first argument (must not be null)

before2:ExceptionSupplier<? extends U, ? extends E>

the supplier for the second argument (must not be null)

Returns:ExceptionSupplier<R, E>

a supplier which passes the results of the given suppliers through this function