All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.rx.util.function.BiAction Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
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));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy