Adapts this collector to perform an additional finishing transformation.
Returns a LongCollector that produces the arithmetic mean of the
input elements or an empty optional if no elements are collected.
Returns a LongCollector that counts the number of input elements
and returns the result as Long.
Returns an LongCollector that counts the number of input elements
and returns the result as Integer.
Returns a LongCollector implementing a "group by" operation on
input numbers, grouping them according to a classification function, and
returning the results in a Map.
Returns a LongCollector 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 LongCollector 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 LongCollector that converts the input numbers to
strings and concatenates them, separated by the specified delimiter, in
encounter order.
Returns a LongCollector 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 LongCollector to another one by applying a mapping
function to each input element before accumulation.
Adapts a
Collector accepting elements of type
U to a
LongCollector by applying a mapping function to each input
element before accumulation.
Returns a
LongCollector that produces the maximal element,
described as an
OptionalLong.
Returns a
LongCollector that produces the minimal element,
described as an
OptionalLong.
Returns a new LongCollector described by the given
supplier, accumulator, merger, and
finisher functions.
Returns a new LongCollector described by the given
supplier, accumulator, and merger functions.
Adapts a Collector which accepts elements of type Long to
a LongCollector.
Returns a LongCollector which partitions the input elements
according to a LongPredicate, and organizes them into a
Map<Boolean, long[]>.
Returns a LongCollector which partitions the input numbers
according to a LongPredicate, 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 LongCollector which performs a reduction of its input
numbers under a specified IntBinaryOperator using the provided
identity.
Returns a
LongCollector which performs a reduction of its input
numbers under a specified
LongBinaryOperator.
Returns a LongCollector which returns summary statistics for the
input elements.
Returns a LongCollector that produces the sum of the input
elements.
Returns a LongCollector that produces the array of the input
elements.
Returns a LongCollector which produces a boolean array containing
the results of applying the given predicate to the input elements, in
encounter order.
<A,R> R
Performs a mutable reduction operation on the elements of this stream
using an
LongCollector which encapsulates the supplier,
accumulator and merger functions making easier to reuse collection
strategies.
Returns a LongCollector 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 LongCollector 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 LongCollector to another one by applying a mapping
function to each input element before accumulation.
Returns a LongCollector which partitions the input numbers
according to a LongPredicate, 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.