org.rx.util.function.BiAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rxlib Show documentation
Show all versions of rxlib Show documentation
A set of utilities for Java
package org.rx.util.function;
import java.util.function.Consumer;
import static org.rx.core.App.sneakyInvoke;
@FunctionalInterface
public interface BiAction {
void invoke(T t) throws Throwable;
default Consumer toConsumer() {
return p -> sneakyInvoke(() -> invoke(p));
}
}