Package one.util.streamex
Class Internals.DoubleCollectorImpl<A,R>
java.lang.Object
one.util.streamex.Internals.BaseCollector<Double,A,R>
one.util.streamex.Internals.DoubleCollectorImpl<A,R>
- All Implemented Interfaces:
Collector<Double,
,A, R> DoubleCollector<A,
,R> MergingCollector<Double,
A, R>
- Enclosing interface:
- Internals
public static final class Internals.DoubleCollectorImpl<A,R>
extends Internals.BaseCollector<Double,A,R>
implements DoubleCollector<A,R>
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.stream.Collector
Collector.Characteristics
-
Field Summary
FieldsFields inherited from class one.util.streamex.Internals.BaseCollector
characteristics, finisher, merger, supplier
-
Constructor Summary
ConstructorsConstructorDescriptionDoubleCollectorImpl
(Supplier<A> supplier, ObjDoubleConsumer<A> doubleAccumulator, BiConsumer<A, A> merger, Function<A, R> finisher, Set<Collector.Characteristics> characteristics) -
Method Summary
Modifier and TypeMethodDescriptionA function that folds a value into a mutable result container.Methods inherited from class one.util.streamex.Internals.BaseCollector
characteristics, finisher, merger, supplier
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.stream.Collector
characteristics, finisher, supplier
Methods inherited from interface one.util.streamex.DoubleCollector
accumulator, andThen
Methods inherited from interface one.util.streamex.MergingCollector
combiner, merger
-
Field Details
-
doubleAccumulator
-
-
Constructor Details
-
DoubleCollectorImpl
DoubleCollectorImpl(Supplier<A> supplier, ObjDoubleConsumer<A> doubleAccumulator, BiConsumer<A, A> merger, Function<A, R> finisher, Set<Collector.Characteristics> characteristics)
-
-
Method Details
-
doubleAccumulator
Description copied from interface:DoubleCollector
A function that folds a value into a mutable result container.- Specified by:
doubleAccumulator
in interfaceDoubleCollector<A,
R> - Returns:
- a function which folds a value into a mutable result container
-