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, 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.LongCollector
accumulator, andThen
Methods 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:LongCollector
A function that folds a value into a mutable result container.- Specified by:
longAccumulator
in interfaceLongCollector<A,
R> - Returns:
- a function which folds a value into a mutable result container
-