Class Internals.LongCollectorImpl<A,R>
java.lang.Object
one.util.streamex.Internals.BaseCollector<Long,A,R>
one.util.streamex.Internals.LongCollectorImpl<A,R>
- All Implemented Interfaces:
Collector<Long,A, R>, LongCollector<A, R>, MergingCollector<Long, A, R>
- Enclosing interface:
Internals
public static final class Internals.LongCollectorImpl<A,R>
extends Internals.BaseCollector<Long,A,R>
implements LongCollector<A,R>
-
Nested Class Summary
Nested classes/interfaces inherited from interface Collector
Collector.Characteristics -
Field Summary
FieldsFields inherited from class Internals.BaseCollector
characteristics, finisher, merger, supplier -
Constructor Summary
ConstructorsConstructorDescriptionLongCollectorImpl(Supplier<A> supplier, ObjLongConsumer<A> longAccumulator, 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 Internals.BaseCollector
characteristics, finisher, merger, supplierMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Collector
characteristics, finisher, supplierMethods inherited from interface LongCollector
accumulator, andThenMethods inherited from interface MergingCollector
combiner, merger
-
Field Details
-
longAccumulator
-
-
Constructor Details
-
LongCollectorImpl
LongCollectorImpl(Supplier<A> supplier, ObjLongConsumer<A> longAccumulator, BiConsumer<A, A> merger, Function<A, R> finisher, Set<Collector.Characteristics> characteristics)
-
-
Method Details
-
longAccumulator
Description copied from interface:LongCollectorA function that folds a value into a mutable result container.- Specified by:
longAccumulatorin interfaceLongCollector<A,R> - Returns:
- a function which folds a value into a mutable result container
-