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