Package org.apache.flink.util.function
Interface TriConsumerWithException<S,T,U,E extends Throwable>
-
- Type Parameters:
S
- type of the first argumentT
- type of the first argumentU
- type of the second argumentE
- type of the thrown exception
- 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 TriConsumerWithException<S,T,U,E extends Throwable>
A checked extension of theTriConsumer
interface.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
accept(S s, T t, U u)
Performs this operation on the given arguments.static <A,B,C>
TriConsumer<A,B,C>unchecked(TriConsumerWithException<A,B,C,?> triConsumerWithException)
Convert aTriConsumerWithException
into aTriConsumer
.
-
-
-
Method Detail
-
accept
void accept(S s, T t, U u) throws E extends Throwable
Performs this operation on the given arguments.
-
unchecked
static <A,B,C> TriConsumer<A,B,C> unchecked(TriConsumerWithException<A,B,C,?> triConsumerWithException)
Convert aTriConsumerWithException
into aTriConsumer
.- Type Parameters:
A
- first input typeB
- second input typeC
- third input type- Parameters:
triConsumerWithException
- TriConsumer with exception to convert into aTriConsumer
.- Returns:
TriConsumer
which rethrows all checked exceptions as unchecked.
-
-