T1 - The type of the first argument to the operationT2 - The type of the second argument to the operationT3 - The type of the third argument to the operation@FunctionalInterface
public interface TriConsumer<T1,T2,T3>
Consumer.
Unlike most other functional interfaces, TriConsumer is expected
to operate via side-effects.
This is a functional interface whose functional method is
accept(Object, Object, Object).
Consumer| Modifier and Type | Method and Description |
|---|---|
void |
accept(T1 t1,
T2 t2,
T3 t3)
Performs this operation on the given arguments.
|
default TriConsumer<T1,T2,T3> |
andThen(TriConsumer<? super T1,? super T2,? super T3> after)
Returns a composed consumer that performs, in sequence, this
operation followed by the
after operation. |
void accept(T1 t1, T2 t2, T3 t3)
t1 - The first input argumentt2 - The second input argumentt3 - The third input argumentdefault TriConsumer<T1,T2,T3> andThen(TriConsumer<? super T1,? super T2,? super T3> after)
after operation. If performing either
operation throws an exception, it is relayed to the caller of the
composed operation. If performing this operation throws an exception,
the after operation will not be performed.after - The operation to perform after this operationafter operationjava.lang.NullPointerException - If after is null