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