25 package java.util.function;
26
27 /**
28 * Apply a function to the input argument, yielding an appropriate result.
29 * This is the {@code long}-bearing specialization for {@link Function}.
30 *
31 * @param <T> the type of input objects to the function
32 *
33 * @see Function
34 * @since 1.8
35 */
36 @FunctionalInterface
37 public interface ToLongFunction<T> {
38
39 /**
40 * Compute the result of applying the function to the input arguments.
41 *
42 * @param t the input object
43 * @return the function result value
44 */
45 public long applyAsLong(T t);
46 }
|
25 package java.util.function;
26
27 /**
28 * Apply a function to the input argument, yielding an appropriate result.
29 * This is the {@code long}-bearing specialization for {@link Function}.
30 *
31 * @param <T> the type of input objects to the function
32 *
33 * @see Function
34 * @since 1.8
35 */
36 @FunctionalInterface
37 public interface ToLongFunction<T> {
38
39 /**
40 * Compute the result of applying the function to the input arguments.
41 *
42 * @param t the input object
43 * @return the function result value
44 */
45 long applyAsLong(T t);
46 }
|