T - type of the first argumentU - type of the second argumentV - type of the third argument@FunctionalInterface
public interface TriConsumer<T,U,V>
Consumer. Unlike most other functional interfaces, TriConsumer is expected to
operate via side-effects.
This is a FunctionalInterface whose functional method is accept(Object, Object, Object).
Provenance: Apache Log4j 2.7
| Modifier and Type | Method and Description |
|---|---|
void |
accept(T k,
U v,
V s)
Performs the operation given the specified arguments.
|
default TriConsumer<T,U,V> |
andThen(TriConsumer<? super T,? super U,? super V> after)
Returns a composed
TriConsumer that performs, in sequence, this operation followed by the after
operation. |
void accept(T k, U v, V s)
k - the first input argumentv - the second input arguments - the third input argumentdefault TriConsumer<T,U,V> andThen(TriConsumer<? super T,? super U,? super V> after)
TriConsumer that performs, in sequence, this operation followed by the 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 operation.TriConsumer that performs in sequence this operation followed by the after
operation.java.lang.NullPointerException - if after is null.Copyright © 2010 - 2023 Adobe. All Rights Reserved