T
- type of the first argumentU
- type of the second argumentE
- type of the thrown exception@FunctionalInterface public interface BiConsumerWithException<T,U,E extends Throwable>
BiConsumer
interface.Modifier and Type | Method and Description |
---|---|
void |
accept(T t,
U u)
Performs this operation on the given arguments.
|
static <A,B> java.util.function.BiConsumer<A,B> |
unchecked(BiConsumerWithException<A,B,?> biConsumerWithException)
Convert a
BiConsumerWithException into a BiConsumer . |
void accept(T t, U u) throws E extends Throwable
static <A,B> java.util.function.BiConsumer<A,B> unchecked(BiConsumerWithException<A,B,?> biConsumerWithException)
BiConsumerWithException
into a BiConsumer
.A
- first input typeB
- second input typebiConsumerWithException
- BiConsumer with exception to convert into a BiConsumer
.BiConsumer
which rethrows all checked exceptions as unchecked.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.