24 */
25 package java.util.function;
26
27 /**
28 * An operation which accepts a single long argument and returns no result.
29 * This is the {@code long}-consuming primitive type specialization of
30 * {@link Consumer}. Unlike most other functional interfaces, {@code LongConsumer}
31 * is expected to operate via side-effects.
32 *
33 * @see Consumer
34 * @since 1.8
35 */
36 @FunctionalInterface
37 public interface LongConsumer {
38
39 /**
40 * Accept an input value.
41 *
42 * @param value the input value
43 */
44 public void accept(long value);
45 }
|
24 */
25 package java.util.function;
26
27 /**
28 * An operation which accepts a single long argument and returns no result.
29 * This is the {@code long}-consuming primitive type specialization of
30 * {@link Consumer}. Unlike most other functional interfaces, {@code LongConsumer}
31 * is expected to operate via side-effects.
32 *
33 * @see Consumer
34 * @since 1.8
35 */
36 @FunctionalInterface
37 public interface LongConsumer {
38
39 /**
40 * Accept an input value.
41 *
42 * @param value the input value
43 */
44 void accept(long value);
45 }
|