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