com.espertech.esper.collection
Class IterablesListIterator

java.lang.Object
  extended by com.espertech.esper.collection.IterablesListIterator
All Implemented Interfaces:
java.util.Iterator<EventBean>

public final class IterablesListIterator
extends java.lang.Object
implements java.util.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 Summary
IterablesListIterator(java.util.Collection<java.lang.Iterable<EventBean>> iterables)
          Constructor - takes a list of Iterable that supply the iterators to iterate over.
 
Method Summary
 boolean hasNext()
           
 EventBean next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IterablesListIterator

public IterablesListIterator(java.util.Collection<java.lang.Iterable<EventBean>> iterables)
Constructor - takes a list of Iterable that supply the iterators to iterate over.

Parameters:
iterables - is a list of Iterable instances for which iterators to iterator over
Method Detail

next

public EventBean next()
Specified by:
next in interface java.util.Iterator<EventBean>

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<EventBean>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<EventBean>

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com