Interface TwoStepMapper.Combineable<T,​R,​A extends TwoStepMapper.Combineable<T,​R,​A>>

    • Method Detail

      • newCollector

        static <T,​R,​A extends TwoStepMapper.Combineable<T,​R,​A>> 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.Combineable implementation.
      • combine

        void combine​(A other)
        This method can be used to combine the state of multiple instances. The intermediate/internal state from one instance is combined into another.