Interface IItemConsumer<C>

    • Method Detail

      • consume

        void consume​(IItem item)
        Consumes another item.
      • merge

        C merge​(C other)
        Merges this object with the supplied object. Normally this is another item consumer of the same type and the output result is a consumer with an internal state that reflects the state of both the current consumer and the input value.
        Parameters:
        other - another instance to merge with
        Returns:
        the merged instance