com.github.akurilov.commons.func.Function2 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-commons Show documentation
Show all versions of java-commons Show documentation
Common functionality Java library
package com.github.akurilov.commons.func;
import java.util.function.Function;
@FunctionalInterface
public interface Function2 {
Z apply(final A a, final B b);
static Function partial1(final Function2 f2, final A a) {
return (b) -> f2.apply(a, b);
}
static Function partial2(final Function2 f2, final B b) {
return (a) -> f2.apply(a, b);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy