Class Internals.LongCollectorImpl<A,​R>

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.stream.Collector

        java.util.stream.Collector.Characteristics
    • 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)  
    • Field Detail

      • longAccumulator

        private final java.util.function.ObjLongConsumer<A> longAccumulator
    • Constructor Detail

      • LongCollectorImpl

        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 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 interface LongCollector<A,​R>
        Returns:
        a function which folds a value into a mutable result container