Package org.nuxeo.common.function
Interface ThrowableBiConsumer<T,U,E extends Throwable>
- Type Parameters:
T
- the type of the first argument to the operationU
- the type of the second argument to the operationE
- 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:
- 11.5
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static <T,
U, E extends Throwable>
BiConsumer<T,U> asBiConsumer
(ThrowableBiConsumer<T, U, E> throwableBiConsumer) default BiConsumer<T,
U>
-
Method Details
-
accept
-
toBiConsumer
- Returns:
- this
ThrowableBiConsumer
as aBiConsumer
throwing the checked exception as an unchecked one
-
asBiConsumer
static <T,U, BiConsumer<T,E extends Throwable> U> asBiConsumer(ThrowableBiConsumer<T, U, E> throwableBiConsumer) - Returns:
- the given
ThrowableBiConsumer
as aBiConsumer
throwing the checked exception as an unchecked one
-