net.esper.collection
Class IterablesListIterator
java.lang.Object
net.esper.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IterablesListIterator
public IterablesListIterator(List<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
next
public EventBean next()
- Specified by:
next
in interface Iterator<EventBean>
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<EventBean>
remove
public void remove()
- Specified by:
remove
in interface Iterator<EventBean>