public interface TerConsumer<T,U,V>
This is the three-arity specialization of Consumer
.
Unlike most other functional interfaces, TerConsumer
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(T t,
U u,
V v)
Performs this operation on the given arguments.
|
default TerConsumer<T,U,V> |
andThen(TerConsumer<? super T,? super U,? super V> after)
Returns a composed
TerConsumer that performs, in sequence, this operation followed by the after operation. |
default TerConsumer<T,U,V> andThen(TerConsumer<? super T,? super U,? super V> after)
TerConsumer
that performs, in sequence, this operation followed by the after
operation.
If performing either operation throws a RuntimeException
, it is relayed to the caller of the composed operation.
If performing this operation throws a RuntimeException
, the after
operation will not be performed.
after
- the operation to perform after this operationTerConsumer
that performs, in sequence, this operation followed by the after
operationjava.lang.NullPointerException
- thrown if, and only if, after
is null