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

hydra.tools.Function3 Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
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 after) {
        Objects.requireNonNull(after);
        return (A a, B b, C c) -> after.apply(apply(a, b, c));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy