package org.optaplanner.core.api.function;

/**
 * Represents a function that accepts three arguments and produces a long-valued result.
 * This is the {@code long}-producing primitive specialization for {@link TriFunction}.
 *
 * <p>
 * This is a <a href="package-summary.html">functional interface</a>
 * whose functional method is {@link #applyAsLong(Object, Object, Object)}.
 *
 * @param <A> the type of the first argument to the function
 * @param <B> the type of the second argument to the function
 * @param <C> the type of the third argument to the function
 *
 * @see TriFunction
 */
@FunctionalInterface
public interface ToLongTriFunction<A, B, C> {

    /**
     * Applies this function to the given arguments.
     *
     * @param a the first function argument
     * @param b the second function argument
     * @param c the third function argument
     * @return the function result
     */
    long applyAsLong(A a, B b, C c);
}
