A - The type of the first argument to the operation.B - The type of the second argument to the operation.@FunctionalInterface public interface BiConsumer<A,B> extends AtlanticConsumer<BiFunction<A,B,Void>>
Consumer.
Unlike most other functional interfaces, BiConsumer is expected to operate via side-effects.
This is a functional interface whose functional method is accept(Object, Object).| Modifier and Type | Method and Description |
|---|---|
void |
accept(A a,
B b)
Performs this operation on the given arguments.
|
default BiFunction<A,B,Void> |
toFunction()
Converts this consumer into an
AtlanticFunction that executes this consumer and then returns null. |
void accept(A a, B b) throws Throwable
a - The first input argument.b - The second input argument.Throwable - Any exception that the operation will throw.default BiFunction<A,B,Void> toFunction()
AtlanticConsumerAtlanticFunction that executes this consumer and then returns null.toFunction in interface AtlanticConsumer<BiFunction<A,B,Void>>Copyright © 2018. All rights reserved.