Package one.util.streamex
Class Internals.BaseCollector<T,A,R>
java.lang.Object
one.util.streamex.Internals.BaseCollector<T,A,R>
- All Implemented Interfaces:
Collector<T,
,A, R> MergingCollector<T,
A, R>
- Direct Known Subclasses:
Internals.DoubleCollectorImpl
,Internals.IntCollectorImpl
,Internals.LongCollectorImpl
,Internals.PartialCollector
- Enclosing interface:
Internals
public abstract static class Internals.BaseCollector<T,A,R>
extends Object
implements MergingCollector<T,A,R>
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.stream.Collector
Collector.Characteristics
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Set
<Collector.Characteristics> (package private) final BiConsumer
<A, A> -
Constructor Summary
ConstructorsConstructorDescriptionBaseCollector
(Supplier<A> supplier, BiConsumer<A, A> merger, Function<A, R> finisher, Set<Collector.Characteristics> characteristics) -
Method Summary
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
accumulator
Methods inherited from interface one.util.streamex.MergingCollector
combiner
-
Field Details
-
supplier
-
merger
-
finisher
-
characteristics
-
-
Constructor Details
-
BaseCollector
BaseCollector(Supplier<A> supplier, BiConsumer<A, A> merger, Function<A, R> finisher, Set<Collector.Characteristics> characteristics)
-
-
Method Details
-
characteristics
- Specified by:
characteristics
in interfaceCollector<T,
A, R>
-
supplier
-
finisher
-
merger
Description copied from interface:MergingCollector
A function that merges the second partial result into the first partial result.- Specified by:
merger
in interfaceMergingCollector<T,
A, R> - Returns:
- a function that merges the second partial result into the first partial result.
-