Class CollectorState<T,​R>


  • public final class CollectorState<T,​R>
    extends java.lang.Object
    INTERNAL API

    Helper class to be able to express collection as a fold using mutable data

    • Constructor Summary

      Constructors 
      Constructor Description
      CollectorState​(java.util.stream.Collector<T,​java.lang.Object,​R> collector)  
    • Constructor Detail

      • CollectorState

        public CollectorState​(java.util.stream.Collector<T,​java.lang.Object,​R> collector)
    • Method Detail

      • accumulated

        public java.lang.Object accumulated()
      • collector

        public java.util.stream.Collector<T,​java.lang.Object,​R> collector()
      • finish

        public R finish()