
org.opentripplanner.framework.functional.FunctionUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
The newest version!
package org.opentripplanner.framework.functional;
import java.util.Objects;
import java.util.function.Function;
public class FunctionUtils {
@FunctionalInterface
public interface TriFunction {
R apply(A a, B b, C c);
default TriFunction andThen(Function super R, ? extends V> after) {
Objects.requireNonNull(after);
return (A a, B b, C c) -> after.apply(apply(a, b, c));
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy