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