
org.rx.util.function.BiFunc Maven / Gradle / Ivy
package org.rx.util.function;
import org.rx.exception.InvalidException;
import java.io.Serializable;
import java.util.function.Function;
@FunctionalInterface
public interface BiFunc extends Serializable {
TR invoke(TP param) throws Throwable;
default Function toFunction() {
return p -> {
try {
return invoke(p);
} catch (Throwable e) {
throw InvalidException.sneaky(e);
}
};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy