hydra.tools.Function3 Maven / Gradle / Ivy
package hydra.tools;
import java.util.Objects;
import java.util.function.Function;
// Copied from https://www.baeldung.com/java-trifunction
@FunctionalInterface
public interface Function3 {
R apply(A a, B b, C c);
default Function3 andThen(Function super R, ? extends K> after) {
Objects.requireNonNull(after);
return (A a, B b, C c) -> after.apply(apply(a, b, c));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy