org.apache.abdera.util
Class MultiIterator<T>

java.lang.Object
  extended by 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.


Constructor Summary
MultiIterator(Iterable<Iterator<T>> i)
           
MultiIterator(Iterator<Iterator<T>> iterators)
           
MultiIterator(Iterator<T>... iterators)
           
 
Method Summary
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiIterator

public MultiIterator(Iterable<Iterator<T>> i)

MultiIterator

public MultiIterator(Iterator<T>... iterators)

MultiIterator

public MultiIterator(Iterator<Iterator<T>> iterators)
Method Detail

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.