Adapts this collector to perform an additional finishing transformation.
Returns a DoubleCollector
that produces the arithmetic mean of
the input elements or an empty optional if no elements are collected.
Returns a DoubleCollector
that counts the number of input
elements and returns the result as Long
.
Returns an DoubleCollector
that counts the number of input
elements and returns the result as Integer
.
Returns a DoubleCollector
implementing a "group by" operation on
input numbers, grouping them according to a classification function, and
returning the results in a Map
.
Returns a DoubleCollector
implementing a cascaded "group by"
operation on input numbers, grouping them according to a classification
function, and then performing a reduction operation on the values
associated with a given key using the specified downstream
IntCollector
.
Returns a DoubleCollector
implementing a cascaded "group by"
operation on input numbers, grouping them according to a classification
function, and then performing a reduction operation on the values
associated with a given key using the specified downstream
IntCollector
.
Returns a DoubleCollector
that converts the input numbers to
strings and concatenates them, separated by the specified delimiter, in
encounter order.
Returns a DoubleCollector
that converts the input numbers to
strings and concatenates them, separated by the specified delimiter, with
the specified prefix and suffix, in encounter order.
Adapts a DoubleCollector
to another one by applying a mapping
function to each input element before accumulation.
Adapts a
Collector
accepting elements of type
U
to a
DoubleCollector
by applying a mapping function to each input
element before accumulation.
Returns a
DoubleCollector
that produces the maximal element,
described as an
OptionalDouble
.
Returns a
DoubleCollector
that produces the minimal element,
described as an
OptionalDouble
.
Returns a new DoubleCollector
described by the given
supplier
, accumulator
, merger
, and
finisher
functions.
Returns a new DoubleCollector
described by the given
supplier
, accumulator
, and merger
functions.
Adapts a Collector
which accepts elements of type Double
to a DoubleCollector
.
Returns a DoubleCollector
which partitions the input elements
according to a DoublePredicate
, and organizes them into a
Map<Boolean, double[]>
.
Returns a DoubleCollector
which partitions the input numbers
according to a DoublePredicate
, reduces the values in each
partition according to another IntCollector
, and organizes them
into a Map<Boolean, D>
whose values are the result of the
downstream reduction.
Returns a DoubleCollector
which performs a reduction of its input
numbers under a specified IntBinaryOperator
using the provided
identity.
Returns a
DoubleCollector
which performs a reduction of its input
numbers under a specified
DoubleBinaryOperator
.
Returns a DoubleCollector
which returns summary statistics for
the input elements.
Returns a DoubleCollector
that produces the sum of the input
elements.
Returns a DoubleCollector
that produces the array of the input
elements.
Returns a DoubleCollector
which produces a boolean array
containing the results of applying the given predicate to the input
elements, in encounter order.
Returns a DoubleCollector
that produces the float[]
array
of the input elements converting them via (float)
casting.
<A,
R> R
Performs a mutable reduction operation on the elements of this stream
using an
DoubleCollector
which encapsulates the supplier,
accumulator and merger functions making easier to reuse collection
strategies.
Returns a DoubleCollector
implementing a cascaded "group by"
operation on input numbers, grouping them according to a classification
function, and then performing a reduction operation on the values
associated with a given key using the specified downstream
IntCollector
.
Returns a DoubleCollector
implementing a cascaded "group by"
operation on input numbers, grouping them according to a classification
function, and then performing a reduction operation on the values
associated with a given key using the specified downstream
IntCollector
.
Adapts a DoubleCollector
to another one by applying a mapping
function to each input element before accumulation.
Returns a DoubleCollector
which partitions the input numbers
according to a DoublePredicate
, reduces the values in each
partition according to another IntCollector
, and organizes them
into a Map<Boolean, D>
whose values are the result of the
downstream reduction.