@FunctionalInterface
public interface BiConsumer<A,B>
| Modifier and Type | Method and Description |
|---|---|
void |
accept(A a,
B b) |
default BiConsumer<A,B> |
after(BiConsumer<A,B> other)
Executes the other consumer before this one.
|
default BiConsumer<A,B> |
before(BiConsumer<A,B> other)
Executes the other consumer after this one.
|
default BiConsumer<A,B> before(BiConsumer<A,B> other)
a.before(b); //a is executed before bother - The other consumer to executedefault BiConsumer<A,B> after(BiConsumer<A,B> other)
a.after(b); //b is executed before aother - The other consumer to execute