T - the type of the first inputU - the type of the second inputV - the type of the third input@FunctionalInterface public interface TriConsumer<T,U,V>
Consumer
as BiConsumer is a binary variant of it.TriFunction,
BiConsumer,
Consumer| Modifier and Type | Method and Description |
|---|---|
void |
accept(T t,
U u,
V v)
Accept the inputs and operate on them.
|
default TriConsumer<T,U,V> |
andThen(TriConsumer<? super T,? super U,? super V> after)
Obtain a composed
TriConsumer that performs me followed by an
after operation. |
void accept(T t, U u, V v)
t - the first inputu - the second inputv - the third inputdefault TriConsumer<T,U,V> andThen(TriConsumer<? super T,? super U,? super V> after)
TriConsumer that performs me followed by an
after operation. If the after consumer throws, then
that exception is propagated to the caller. If I throw, then likewise
but also the after consumer will not be invoked.after - a consumer to invoke after me. Must not be nullafter consumerNullPointerException - if after is nullCopyright © 2020. All rights reserved.