@FunctionalInterface
public interface ThrowingConsumer<O,T extends java.lang.Throwable>
| Modifier and Type | Method and Description |
|---|---|
void |
accept(O o) |
default ThrowingConsumer<O,T> |
after(ThrowingConsumer<O,T> other)
Executes the other consumer before this one.
|
default ThrowingConsumer<O,T> |
before(ThrowingConsumer<O,T> other)
Executes the other consumer after this one.
|
default ThrowingConsumer<O,T> before(ThrowingConsumer<O,T> other)
a.before(b); //a is executed before bother - The other consumer to executedefault ThrowingConsumer<O,T> after(ThrowingConsumer<O,T> other)
a.after(b); //b is executed before aother - The other consumer to execute