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.
@FunctionalInterface public interface ThrowableBiConsumer<T,U,E extends Throwable>
- Since:
- 11.5
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaccept(T t, U u)static <T,U,E extends Throwable>
BiConsumer<T,U>asBiConsumer(ThrowableBiConsumer<T,U,E> throwableBiConsumer)default BiConsumer<T,U>toBiConsumer()
-
-
-
Method Detail
-
toBiConsumer
default BiConsumer<T,U> toBiConsumer()
- Returns:
- this
ThrowableBiConsumeras aBiConsumerthrowing the checked exception as an unchecked one
-
asBiConsumer
static <T,U,E extends Throwable> BiConsumer<T,U> asBiConsumer(ThrowableBiConsumer<T,U,E> throwableBiConsumer)
- Returns:
- the given
ThrowableBiConsumeras aBiConsumerthrowing the checked exception as an unchecked one
-
-