org.apache.abdera.util
Class MultiIterator<T>
java.lang.Object
org.apache.abdera.util.MultiIterator<T>
- All Implemented Interfaces:
- Iterator<T>
public final class MultiIterator<T>
- extends Object
- implements Iterator<T>
Iterator implementation that wraps multiple iterators and invokes them in sequence.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiIterator
public MultiIterator(Iterable<Iterator<T>> i)
MultiIterator
public MultiIterator(Iterator<T>... iterators)
MultiIterator
public MultiIterator(Iterator<Iterator<T>> iterators)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<T>
next
public T next()
- Specified by:
next
in interface Iterator<T>
remove
public void remove()
- Specified by:
remove
in interface Iterator<T>
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.