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

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

package org.rx.util.function;

import org.rx.core.SystemException;

import java.util.function.Function;

@FunctionalInterface
public interface BiFunc {
    TR invoke(TP param) throws Throwable;

    default Function toFunction() {
        return p -> {
            try {
                return invoke(p);
            } catch (Throwable e) {
                throw SystemException.wrap(e);
            }
        };
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy