Package one.util.streamex
Class Internals.BaseCollector<T,A,R>
- java.lang.Object
-
- one.util.streamex.Internals.BaseCollector<T,A,R>
-
- All Implemented Interfaces:
java.util.stream.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 java.lang.Object implements MergingCollector<T,A,R>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.Set<java.util.stream.Collector.Characteristics>
characteristics
(package private) java.util.function.Function<A,R>
finisher
(package private) java.util.function.BiConsumer<A,A>
merger
(package private) java.util.function.Supplier<A>
supplier
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.util.stream.Collector.Characteristics>
characteristics()
java.util.function.Function<A,R>
finisher()
java.util.function.BiConsumer<A,A>
merger()
A function that merges the second partial result into the first partial result.java.util.function.Supplier<A>
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.MergingCollector
combiner
-
-
-
-
Method Detail
-
characteristics
public java.util.Set<java.util.stream.Collector.Characteristics> characteristics()
-
supplier
public java.util.function.Supplier<A> supplier()
-
merger
public java.util.function.BiConsumer<A,A> 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.
-
-