Package one.util.streamex
Class Internals.IntCollectorImpl<A,R>
- java.lang.Object
-
- one.util.streamex.Internals.BaseCollector<java.lang.Integer,A,R>
-
- one.util.streamex.Internals.IntCollectorImpl<A,R>
-
- All Implemented Interfaces:
java.util.stream.Collector<java.lang.Integer,A,R>
,IntCollector<A,R>
,MergingCollector<java.lang.Integer,A,R>
- Enclosing interface:
- Internals
public static final class Internals.IntCollectorImpl<A,R> extends Internals.BaseCollector<java.lang.Integer,A,R> implements IntCollector<A,R>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.ObjIntConsumer<A>
intAccumulator
-
Fields inherited from class one.util.streamex.Internals.BaseCollector
characteristics, finisher, merger, supplier
-
-
Constructor Summary
Constructors Constructor Description IntCollectorImpl(java.util.function.Supplier<A> supplier, java.util.function.ObjIntConsumer<A> intAccumulator, java.util.function.BiConsumer<A,A> merger, java.util.function.Function<A,R> finisher, java.util.Set<java.util.stream.Collector.Characteristics> characteristics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.function.ObjIntConsumer<A>
intAccumulator()
A 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 one.util.streamex.IntCollector
accumulator, andThen
-
Methods inherited from interface one.util.streamex.MergingCollector
combiner, merger
-
-
-
-
Field Detail
-
intAccumulator
private final java.util.function.ObjIntConsumer<A> intAccumulator
-
-
Method Detail
-
intAccumulator
public java.util.function.ObjIntConsumer<A> 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
-
-