Class UnionIteration<E,​X extends Exception>

  • All Implemented Interfaces:
    AutoCloseable, CloseableIteration<E,​X>, Iteration<E,​X>

    public class UnionIteration<E,​X extends Exception>
    extends LookAheadIteration<E,​X>
    An Iteration that returns the bag union of the results of a number of Iterations. 'Bag union' means that the UnionIteration does not filter duplicate objects.
    • Constructor Detail

      • UnionIteration

        public UnionIteration​(Iteration<? extends E,​X>... args)
        Creates a new UnionIteration that returns the bag union of the results of a number of Iterations.
        Parameters:
        args - The Iterations containing the elements to iterate over.
      • UnionIteration

        public UnionIteration​(Iterable<? extends Iteration<? extends E,​X>> args)
        Creates a new UnionIteration that returns the bag union of the results of a number of Iterations.
        Parameters:
        args - The Iterations containing the elements to iterate over.