## Uses of Interface
java.util.function.DoubleConsumer

- Packages that use DoubleConsumer
  Package | Description
  --- | ---
  java.util |
  java.util.function | Functional interfaces provide target types for lambda expressions and method references.
  java.util.stream | Classes to support functional-style operations on streams of elements, such as map-reduce transformations on collections.

- - ### Uses of DoubleConsumer in java.util

    Classes in java.util that implement DoubleConsumer
    Modifier and Type | Class and Description
    --- | ---
    `class` | `DoubleSummaryStatistics` A state object for collecting statistics such as count, min, max, sum, and average.

    Methods in java.util with parameters of type DoubleConsumer
    Modifier and Type | Method and Description
    --- | ---
    `default void` | Spliterator.OfDouble.`forEachRemaining(DoubleConsumer action)`
    `default void` | PrimitiveIterator.OfDouble.`forEachRemaining(DoubleConsumer action)` Performs the given action for each remaining element until all elements have been processed or the action throws an exception.
    `void` | OptionalDouble.`ifPresent(DoubleConsumer consumer)` Have the specified consumer accept the value if a value is present, otherwise do nothing.
    `boolean` | Spliterator.OfDouble.`tryAdvance(DoubleConsumer action)`

  - ### Uses of DoubleConsumer in java.util.function

    Methods in java.util.function that return DoubleConsumer
    Modifier and Type | Method and Description
    --- | ---
    `default DoubleConsumer` | DoubleConsumer.`andThen(DoubleConsumer after)` Returns a composed `DoubleConsumer` that performs, in sequence, this operation followed by the `after` operation.

    Methods in java.util.function with parameters of type DoubleConsumer
    Modifier and Type | Method and Description
    --- | ---
    `default DoubleConsumer` | DoubleConsumer.`andThen(DoubleConsumer after)` Returns a composed `DoubleConsumer` that performs, in sequence, this operation followed by the `after` operation.

  - ### Uses of DoubleConsumer in java.util.stream

    Subinterfaces of DoubleConsumer in java.util.stream
    Modifier and Type | Interface and Description
    --- | ---
    `static interface` | `DoubleStream.Builder` A mutable builder for a `DoubleStream`.

    Methods in java.util.stream with parameters of type DoubleConsumer
    Modifier and Type | Method and Description
    --- | ---
    `void` | DoubleStream.`forEach(DoubleConsumer action)` Performs an action for each element of this stream.
    `void` | DoubleStream.`forEachOrdered(DoubleConsumer action)` Performs an action for each element of this stream, guaranteeing that each element is processed in encounter order for streams that have a defined encounter order.
    `DoubleStream` | DoubleStream.`peek(DoubleConsumer action)` Returns a stream consisting of the elements of this stream, additionally performing the provided action on each element as elements are consumed from the resulting stream.

Copyright © 2025 API Design. All Rights Reserved.