Package org.nuxeo.common.function
Interface ThrowableBiFunction<T,U,R,E extends Throwable>
- Type Parameters:
T- the type of the first input to the functionU- the type of the second input to the functionR- the type of the result of the functionE- the type of exception to throw
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
- Since:
- 2025.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T,U, R, E extends Throwable>
BiFunction<T, U, R> asBiFunction(ThrowableBiFunction<T, U, R, E> throwableFunction) default BiFunction<T, U, R>
-
Method Details
-
apply
- Throws:
E
-
toBiFunction
- Returns:
- this
ThrowableBiFunctionas aBiFunctionthrowing the checked exception as an unchecked one
-
asBiFunction
static <T,U, BiFunction<T,R, E extends Throwable> U, asBiFunctionR> (ThrowableBiFunction<T, U, R, E> throwableFunction) - Returns:
- the given
ThrowableBiFunctionas aBiFunctionthrowing the checked exception as an unchecked one
-