Class UnionIteration<E>

All Implemented Interfaces:
AutoCloseable, Iterator<E>, CloseableIteration<E>

@Deprecated(since="4.1.0") public class UnionIteration<E> extends LookAheadIteration<E>
Deprecated.
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 Details

    • UnionIteration

      @SafeVarargs public UnionIteration(CloseableIteration<? extends E>... args)
      Deprecated.
      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 CloseableIteration<? extends E>> args)
      Deprecated.
      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.
  • Method Details