Class IterablesListIterator

java.lang.Object
com.espertech.esper.common.internal.collection.IterablesListIterator
All Implemented Interfaces:
Iterator<EventBean>

public final class IterablesListIterator extends Object implements Iterator<EventBean>
An iterator over a list of iterables. The IterablesListIterator iterator takes a list of Iterable instances as a parameter. The iterator will Start at the very first Iterable and obtain it's iterator. It then allows iteration over this first iterator until that iterator returns no next value. Then the IterablesListIterator iterator will obtain the next iterable and iterate over this next iterable's iterator until no more values can be obtained. This continues until the last Iterable in the order of the list of Iterables.
  • Constructor Details

    • IterablesListIterator

      public IterablesListIterator(Iterator<Iterable<EventBean>> iteratorOfIterables)
      Constructor - takes a list of Iterable that supply the iterators to iterate over.
      Parameters:
      iteratorOfIterables - super-iterate of iterables
  • Method Details