A
- the type of the first argument of the consumerB
- the type of the second argument of the consumerC
- the type of the third argument of the consumer@ConsumerType
@FunctionalInterface
public interface ThrowableTriConsumer<A,B,C>
TriConsumer
that can throw an exception.
This interface can be implemented with a lambda function.
Modifier and Type | Method and Description |
---|---|
void |
accept(A a,
B b,
C c)
Operates with three parameters and returns
void . |
default ThrowableTriConsumer<A,B,C> |
andThen(ThrowableTriConsumer<? super A,? super B,? super C> after)
Returns the
ThrowableTriConsumer function that first executes the
current ThrowableTriConsumer instance's accept method,
then executes the after parameter's accept method. |
static <A,B,C> ThrowableTriConsumer<A,B,C> |
empty()
Returns an empty
ThrowableTriConsumer that doesn't perform any
operation. |
static <A,B,C> ThrowableTriConsumer<A,B,C> empty()
ThrowableTriConsumer
that doesn't perform any
operation.ThrowableTriConsumer
that doesn't perform any
operationvoid accept(A a, B b, C c) throws java.lang.Exception
void
. This function
can be implemented explicitly or with a lambda.a
- the first function argumentb
- the second function argumentc
- the third function argumentjava.lang.Exception
default ThrowableTriConsumer<A,B,C> andThen(ThrowableTriConsumer<? super A,? super B,? super C> after)
ThrowableTriConsumer
function that first executes the
current ThrowableTriConsumer
instance's accept
method,
then executes the after
parameter's accept
method.after
- the ThrowableTriConsumer
instance to execute after
the current instanceThrowableTriConsumer
that executes the current
instance's accept
method, as well as that of after