Package one.util.streamex
Class Internals.DoubleCollectorImpl<A,R>
- java.lang.Object
-
- one.util.streamex.Internals.BaseCollector<java.lang.Double,A,R>
-
- one.util.streamex.Internals.DoubleCollectorImpl<A,R>
-
- All Implemented Interfaces:
java.util.stream.Collector<java.lang.Double,A,R>
,DoubleCollector<A,R>
,MergingCollector<java.lang.Double,A,R>
- Enclosing interface:
- Internals
public static final class Internals.DoubleCollectorImpl<A,R> extends Internals.BaseCollector<java.lang.Double,A,R> implements DoubleCollector<A,R>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.ObjDoubleConsumer<A>
doubleAccumulator
-
Fields inherited from class one.util.streamex.Internals.BaseCollector
characteristics, finisher, merger, supplier
-
-
Constructor Summary
Constructors Constructor Description DoubleCollectorImpl(java.util.function.Supplier<A> supplier, java.util.function.ObjDoubleConsumer<A> doubleAccumulator, java.util.function.BiConsumer<A,A> merger, java.util.function.Function<A,R> finisher, java.util.Set<java.util.stream.Collector.Characteristics> characteristics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.function.ObjDoubleConsumer<A>
doubleAccumulator()
A 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 one.util.streamex.DoubleCollector
accumulator, andThen
-
Methods inherited from interface one.util.streamex.MergingCollector
combiner, merger
-
-
-
-
Field Detail
-
doubleAccumulator
private final java.util.function.ObjDoubleConsumer<A> doubleAccumulator
-
-
Constructor Detail
-
DoubleCollectorImpl
DoubleCollectorImpl(java.util.function.Supplier<A> supplier, java.util.function.ObjDoubleConsumer<A> doubleAccumulator, java.util.function.BiConsumer<A,A> merger, java.util.function.Function<A,R> finisher, java.util.Set<java.util.stream.Collector.Characteristics> characteristics)
-
-
Method Detail
-
doubleAccumulator
public java.util.function.ObjDoubleConsumer<A> 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
-
-