hydra.tools.Function3 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hydra-java Show documentation
Show all versions of hydra-java Show documentation
The Hydra language for strongly-typed transformations
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));
}
}