A - The type of the first argument to the operation.B - The type of the second argument to the operation.C - The type of the third argument to the operation.@FunctionalInterface public interface TriConsumer<A,B,C> extends AtlanticConsumer<A,BiConsumer<B,C>,TriFunction<A,B,C,Void>>
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 BiConsumer<B,C> |
downgrade(Supplier<A> supplier) |
default TriFunction<A,B,C,Void> |
toFunction()
Converts this consumer into an
AtlanticFunction that executes this consumer and then returns null. |
downgradedefault BiConsumer<B,C> downgrade(Supplier<A> supplier)
downgrade in interface AtlanticConsumer<A,BiConsumer<B,C>,TriFunction<A,B,C,Void>>void accept(A a, B b, C c) throws Throwable
a - The first input argument.b - The second input argument.c - The third input argument.Throwable - Any exception that the operation will throw.default TriFunction<A,B,C,Void> toFunction()
AtlanticConsumerAtlanticFunction that executes this consumer and then returns null.toFunction in interface AtlanticConsumer<A,BiConsumer<B,C>,TriFunction<A,B,C,Void>>Copyright © 2019. All rights reserved.