26
27 /**
28 * Apply a function to the long-valued input argument, yielding an appropriate
29 * result. This is the {@code long}-consuming primitive specialization for
30 * {@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 LongFunction<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(long value);
47 }
|
26
27 /**
28 * Apply a function to the long-valued input argument, yielding an appropriate
29 * result. This is the {@code long}-consuming primitive specialization for
30 * {@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 LongFunction<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(long value);
47 }
|