Uses of Interface
java.util.function.DoubleConsumer
Package
Description
Contains the collections framework, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
Functional interfaces provide target types for lambda expressions
and method references.
Classes to support functional-style operations on streams of elements, such
as map-reduce transformations on collections.
-
Uses of DoubleConsumer in java.util
Modifier and TypeClassDescriptionclass
A state object for collecting statistics such as count, min, max, sum, and average.Modifier and TypeInterfaceDescriptionstatic interface
An Iterator specialized fordouble
values.static interface
A Spliterator specialized fordouble
values.Modifier and TypeMethodDescriptiondefault 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 action) If a value is present, performs the given action with the value, otherwise does nothing.void
OptionalDouble.ifPresentOrElse
(DoubleConsumer action, Runnable emptyAction) If a value is present, performs the given action with the value, otherwise performs the given empty-based action. -
Uses of DoubleConsumer in java.util.function
Modifier and TypeMethodDescriptiondefault DoubleConsumer
DoubleConsumer.andThen
(DoubleConsumer after) Returns a composedDoubleConsumer
that performs, in sequence, this operation followed by theafter
operation.Modifier and TypeMethodDescriptiondefault DoubleConsumer
DoubleConsumer.andThen
(DoubleConsumer after) Returns a composedDoubleConsumer
that performs, in sequence, this operation followed by theafter
operation. -
Uses of DoubleConsumer in java.util.stream
Modifier and TypeInterfaceDescriptionstatic interface
A mutable builder for aDoubleStream
.Modifier and TypeMethodDescriptionvoid
DoubleStream.DoubleMapMultiConsumer.accept
(double value, DoubleConsumer dc) Replaces the givenvalue
with zero or more values by feeding the mapped values to thedc
consumer.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.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.Modifier and TypeMethodDescriptiondefault DoubleStream
Stream.mapMultiToDouble
(BiConsumer<? super T, ? super DoubleConsumer> mapper) Returns aDoubleStream
consisting of the results of replacing each element of this stream with multiple elements, specifically zero or more elements.