Interface TwoStepMapper.Mergeable<T,​R>

    • Method Detail

      • newCollector

        static <T,​R,​A extends TwoStepMapper.Mergeable<T,​R>> java.util.stream.Collector<T,​A,​R> newCollector​(java.util.function.Supplier<A> supplier)
        Create a new Collector that can be used with Stream.collect(Collector). Just provide a constructor or factory method reference to create instances of a TwoStepMapper.Mergeable implementation.
      • merge

        void merge​(R other)
        This method can be used to merge the results from multiple instances. The final results from one instance is merged into another.