# DoubleConsumer

public interface **DoubleConsumer**

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

Represents an operation that accepts a single `double`-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 `double`. Unlike most other functional interfaces,
`DoubleConsumer` 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/DoubleConsumer.html#accept(double)`.

##### 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/DoubleConsumer.html#accept(double))(double value) Performs this operation on the given argument. |
| [DoubleConsumer](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/DoubleConsumer.html) | [andThen](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/DoubleConsumer.html#andThen(java.util.function.DoubleConsumer))([DoubleConsumer](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/function/DoubleConsumer.html) after) Returns a composed `DoubleConsumer` that performs, in sequence, this operation followed by the `after` operation. |

## Public Methods

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

Performs this operation on the given argument.

##### Parameters

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

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

Returns a composed `DoubleConsumer` 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 `DoubleConsumer` 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 |
|---|---|