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 operationT4 - The type of the fourth argument to the operation@FunctionalInterface
public interface Consumer4<T1,T2,T3,T4>
Consumer.
Unlike most other functional interfaces, Consumer4 is expected
to operate via side-effects.
This is a functional interface whose functional method is
accept(Object, Object, Object, Object).
Consumer| Modifier and Type | Method and Description |
|---|---|
void |
accept(T1 t1,
T2 t2,
T3 t3,
T4 t4)
Performs this operation on the given arguments.
|
default Consumer4<T1,T2,T3,T4> |
andThen(Consumer4<? super T1,? super T2,? super T3,? super T4> after)
Returns a composed consumer that performs, in sequence, this
operation followed by the
after operation. |
void accept(T1 t1, T2 t2, T3 t3, T4 t4)
t1 - The first input argumentt2 - The second input argumentt3 - The third input argumentt4 - The fourth input argumentdefault Consumer4<T1,T2,T3,T4> andThen(Consumer4<? super T1,? super T2,? super T3,? super T4> 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