Package one.util.streamex
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 java.util.stream.Collector
Collector.Characteristics -
Field Summary
FieldsFields inherited from class one.util.streamex.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 one.util.streamex.Internals.BaseCollector
characteristics, finisher, merger, supplierMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.stream.Collector
characteristics, finisher, supplierMethods inherited from interface one.util.streamex.LongCollector
accumulator, andThenMethods inherited from interface one.util.streamex.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
-