Package one.util.streamex
Class Internals.IntCollectorImpl<A,R>
java.lang.Object
one.util.streamex.Internals.BaseCollector<Integer,A,R>
one.util.streamex.Internals.IntCollectorImpl<A,R>
- All Implemented Interfaces:
Collector<Integer,
,A, R> IntCollector<A,
,R> MergingCollector<Integer,
A, R>
- Enclosing interface:
Internals
public static final class Internals.IntCollectorImpl<A,R>
extends Internals.BaseCollector<Integer,A,R>
implements IntCollector<A,R>
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.stream.Collector
Collector.Characteristics
-
Field Summary
FieldsFields inherited from class one.util.streamex.Internals.BaseCollector
characteristics, finisher, merger, supplier
-
Constructor Summary
ConstructorsConstructorDescriptionIntCollectorImpl
(Supplier<A> supplier, ObjIntConsumer<A> intAccumulator, BiConsumer<A, A> merger, Function<A, R> finisher, Set<Collector.Characteristics> characteristics) -
Method Summary
Modifier and TypeMethodDescriptionA 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 java.util.stream.Collector
characteristics, finisher, supplier
Methods inherited from interface one.util.streamex.IntCollector
accumulator, andThen
Methods inherited from interface one.util.streamex.MergingCollector
combiner, merger
-
Field Details
-
intAccumulator
-
-
Constructor Details
-
IntCollectorImpl
IntCollectorImpl(Supplier<A> supplier, ObjIntConsumer<A> intAccumulator, BiConsumer<A, A> merger, Function<A, R> finisher, Set<Collector.Characteristics> characteristics)
-
-
Method Details
-
intAccumulator
Description copied from interface:IntCollector
A function that folds a value into a mutable result container.- Specified by:
intAccumulator
in interfaceIntCollector<A,
R> - Returns:
- a function which folds a value into a mutable result container
-