# IntConsumer

public interface **IntConsumer**

|---|---|---|
| Known Indirect Subclasses [IntStream.Builder](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/stream/IntStream.Builder.html), [IntSummaryStatistics](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/IntSummaryStatistics.html), [LongSummaryStatistics](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/LongSummaryStatistics.html) |---|---| | [IntStream.Builder](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/stream/IntStream.Builder.html) | A mutable builder for an `IntStream`. | | [IntSummaryStatistics](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/IntSummaryStatistics.html) | A state object for collecting statistics such as count, min, max, sum, and average. | | [LongSummaryStatistics](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/LongSummaryStatistics.html) | A state object for collecting statistics such as count, min, max, sum, and average. | |||

Represents an operation that accepts a single `int`-valued argument and
returns no result. This is the primitive type specialization of
`https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/Consumer.html` for `int`. Unlike most other functional interfaces,
`IntConsumer` is expected to operate via side-effects.

This is a [functional interface](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/package-summary)
whose functional method is `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/IntConsumer.html#accept(int)`.

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/Consumer.html`

### Public Method Summary

|---|---|
| abstract void | [accept](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/IntConsumer.html#accept(int))(int value) Performs this operation on the given argument. |
| [IntConsumer](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/IntConsumer.html) | [andThen](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/IntConsumer.html#andThen(java.util.function.IntConsumer))([IntConsumer](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/IntConsumer.html) after) Returns a composed `IntConsumer` that performs, in sequence, this operation followed by the `after` operation. |

## Public Methods

#### public abstract void
**accept**
(int value)

Performs this operation on the given argument.

##### Parameters

| value | the input argument |
|---|---|

#### public [IntConsumer](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/IntConsumer.html)
**andThen**
([IntConsumer](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/IntConsumer.html) after)

Returns a composed `IntConsumer` that performs, in sequence, this
operation followed by the `after` operation. If performing either
operation throws an exception, it is relayed to the caller of the
composed operation. If performing this operation throws an exception,
the `after` operation will not be performed.

##### Parameters

| after | the operation to perform after this operation |
|---|---|

##### Returns

- a composed `IntConsumer` that performs in sequence this operation followed by the `after` operation

##### Throws

| [NullPointerException](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/NullPointerException.html) | if `after` is null |
|---|---|