A
- the type of the first argument to the operationB
- the type of the second argument to the operationC
- the type of the third argument to the operationpublic interface TriConsumer<A,B,C>
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)
.Modifier and Type | Method and Description |
---|---|
void |
accept(A a,
B b,
C c)
Performs this operation on the given arguments.
|
default TriConsumer<A,B,C> |
andThen(TriConsumer<? super A,? super B,? super C> after)
Returns a composed @{link TriConsumer} that performs, in sequence, this operation followed by the
after
operation. |
void accept(A a, B b, C c)
a
- the first argument to the operationb
- the second argument to the operationc
- the third argument to the operationdefault TriConsumer<A,B,C> andThen(TriConsumer<? super A,? super B,? super C> 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 operationTriConsumer
that performs in sequence this operation followed by the after
operationNullPointerException
- if after
is nullCopyright © 2013–2019 Apache Software Foundation. All rights reserved.