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 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Collector
accumulatorMethods inherited from interface 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:
characteristicsin interfaceCollector<T,A, R>
-
supplier
-
finisher
-
merger
Description copied from interface:MergingCollectorA function that merges the second partial result into the first partial result.- Specified by:
mergerin interfaceMergingCollector<T,A, R> - Returns:
- a function that merges the second partial result into the first partial result.
-