1 package io.atlassian.fugue.extensions.functions;
2
3 /**
4 * Represents a function that accepts three arguments and produces a result.
5 * <p>
6 * This is a functional interface whose functional method is
7 * {@link #apply(Object, Object, Object)}.
8 *
9 * @param <A> the type of the first argument to the function
10 * @param <B> the type of the second argument to the function
11 * @param <C> the type of the third argument to the function
12 * @param <Z> the type of the result of the function
13 * @see java.util.function.Function
14 * @see java.util.function.BiFunction
15 * @since 4.7.0
16 */
17 @FunctionalInterface public interface Function3<A, B, C, Z> {
18
19 /**
20 * Applies this function to the given arguments.
21 *
22 * @param a the first function argument
23 * @param b the second function argument
24 * @param c the third function argument
25 * @return the function result
26 */
27 Z apply(A a, B b, C c);
28
29 }