Package one.util.streamex
Class Internals.PartialCollector<A,R>
java.lang.Object
one.util.streamex.Internals.BaseCollector<Object,A,R>
one.util.streamex.Internals.PartialCollector<A,R>
- All Implemented Interfaces:
Collector<Object,
,A, R> MergingCollector<Object,
A, R>
- Enclosing interface:
- Internals
public static final class Internals.PartialCollector<A,R>
extends Internals.BaseCollector<Object,A,R>
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.stream.Collector
Collector.Characteristics
-
Field Summary
Fields inherited from class one.util.streamex.Internals.BaseCollector
characteristics, finisher, merger, supplier
-
Constructor Summary
ConstructorsConstructorDescriptionPartialCollector
(Supplier<A> supplier, BiConsumer<A, A> merger, Function<A, R> finisher, Set<Collector.Characteristics> characteristics) -
Method Summary
Modifier and TypeMethodDescriptionasCancellable
(BiConsumer<A, T> accumulator, Predicate<A> finished) (package private) DoubleCollector<A,
R> asDouble
(ObjDoubleConsumer<A> doubleAccumulator) (package private) IntCollector<A,
R> asInt
(ObjIntConsumer<A> intAccumulator) (package private) LongCollector<A,
R> asLong
(ObjLongConsumer<A> longAccumulator) asRef
(BiConsumer<A, T> accumulator) (package private) static Internals.PartialCollector<Internals.ObjIntBox<BitSet>,
boolean[]> (package private) static <K,
D, A, M extends Map<K, D>>
Internals.PartialCollector<Map<K,A>, M> (package private) static Internals.PartialCollector<int[],
Integer> intSum()
(package private) static Internals.PartialCollector<StringBuilder,
String> joining
(CharSequence delimiter, CharSequence prefix, CharSequence suffix, boolean hasPS) (package private) static Internals.PartialCollector<long[],
Long> longSum()
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.MergingCollector
combiner
-
Constructor Details
-
PartialCollector
PartialCollector(Supplier<A> supplier, BiConsumer<A, A> merger, Function<A, R> finisher, Set<Collector.Characteristics> characteristics)
-
-
Method Details
-
accumulator
-
asInt
-
asLong
-
asDouble
-
asRef
-
asCancellable
-
intSum
-
longSum
-
booleanArray
-
grouping
static <K,D, Internals.PartialCollector<Map<K,A, M extends Map<K, D>> A>, groupingM> (Supplier<M> mapFactory, Collector<?, A, D> downstream) -
joining
static Internals.PartialCollector<StringBuilder,String> joining(CharSequence delimiter, CharSequence prefix, CharSequence suffix, boolean hasPS)
-