Class GroupIterator

    • Constructor Detail

      • GroupIterator

        public GroupIterator​(org.apache.camel.Exchange exchange,
                             Iterator<?> it,
                             int group)
        Creates a new group iterator
        Parameters:
        exchange - the exchange used to create this group iterator
        it - the iterator to group
        group - number of parts to group together
        Throws:
        IllegalArgumentException - is thrown if group is not a positive number
      • GroupIterator

        public GroupIterator​(org.apache.camel.Exchange exchange,
                             Iterator<?> it,
                             int group,
                             boolean skipFirst)
        Creates a new group iterator
        Parameters:
        exchange - the exchange used to create this group iterator
        it - the iterator to group
        group - number of parts to group together
        Throws:
        IllegalArgumentException - is thrown if group is not a positive number