26
27 /**
28 * Apply a function to the integer-valued input argument, yielding an
29 * appropriate result. This is the {@code int}-consuming primitive
30 * specialization for {@link Function}.
31 *
32 * @param <R> the type of output objects from the function
33 *
34 * @see Function
35 * @since 1.8
36 */
37 @FunctionalInterface
38 public interface IntFunction<R> {
39
40 /**
41 * Compute the result of applying the function to the input argument
42 *
43 * @param value the input value
44 * @return the function result
45 */
46 public R apply(int value);
47 }
|
26
27 /**
28 * Apply a function to the integer-valued input argument, yielding an
29 * appropriate result. This is the {@code int}-consuming primitive
30 * specialization for {@link Function}.
31 *
32 * @param <R> the type of output objects from the function
33 *
34 * @see Function
35 * @since 1.8
36 */
37 @FunctionalInterface
38 public interface IntFunction<R> {
39
40 /**
41 * Compute the result of applying the function to the input argument
42 *
43 * @param value the input value
44 * @return the function result
45 */
46 R apply(int value);
47 }
|