Class UnionIterator<E>

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

public class UnionIterator<E> extends LookAheadIterator<E>
Author:
MJAHale
  • Constructor Details

    • UnionIterator

      public UnionIterator(Iterable<? extends E>... args)
      Creates a new UnionIterator that returns the bag union of the results of a number of Iterators.
      Parameters:
      args - The Iterators containing the elements to iterate over.
    • UnionIterator

      public UnionIterator(Iterable<? extends Iterable<? extends E>> args)
  • Method Details