Package one.util.streamex
Class Internals.LongCollectorImpl<A,R>
- java.lang.Object
-
- one.util.streamex.Internals.BaseCollector<java.lang.Long,A,R>
-
- one.util.streamex.Internals.LongCollectorImpl<A,R>
-
- All Implemented Interfaces:
java.util.stream.Collector<java.lang.Long,A,R>
,LongCollector<A,R>
,MergingCollector<java.lang.Long,A,R>
- Enclosing interface:
- Internals
public static final class Internals.LongCollectorImpl<A,R> extends Internals.BaseCollector<java.lang.Long,A,R> implements LongCollector<A,R>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.ObjLongConsumer<A>
longAccumulator
-
Fields inherited from class one.util.streamex.Internals.BaseCollector
characteristics, finisher, merger, supplier
-
-
Constructor Summary
Constructors Constructor Description LongCollectorImpl(java.util.function.Supplier<A> supplier, java.util.function.ObjLongConsumer<A> longAccumulator, 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.ObjLongConsumer<A>
longAccumulator()
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.LongCollector
accumulator, andThen
-
Methods inherited from interface one.util.streamex.MergingCollector
combiner, merger
-
-
-
-
Field Detail
-
longAccumulator
private final java.util.function.ObjLongConsumer<A> longAccumulator
-
-
Method Detail
-
longAccumulator
public java.util.function.ObjLongConsumer<A> 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
-
-