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, supplierMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.stream.Collector
characteristics, finisher, supplierMethods inherited from interface one.util.streamex.DoubleCollector
accumulator, andThenMethods 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:DoubleCollectorA function that folds a value into a mutable result container.- Specified by:
doubleAccumulatorin interfaceDoubleCollector<A,R> - Returns:
- a function which folds a value into a mutable result container
-