|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.ChainedIterator<E>
public class ChainedIterator<E>
Like org.apache.commons.collections.iterators.IteratorChain, to avoid the dependency.... It is quite easy to understand what this actually is. It is an Iterator implemetnation which is based on other Iterators. During iterating, it simply iterates them all sequentially.
| Constructor Summary | |
|---|---|
ChainedIterator()
|
|
ChainedIterator(Iterator<E>... is)
|
|
| Method Summary | |
|---|---|
ChainedIterator<E> |
addIterator(Iterator<E> i)
Adds another iterator |
boolean |
hasNext()
|
static void |
main(String[] argv)
Just testing |
E |
next()
|
void |
remove()
Not supported |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChainedIterator()
public ChainedIterator(Iterator<E>... is)
| Method Detail |
|---|
public ChainedIterator<E> addIterator(Iterator<E> i)
IllegalStateException - if iteration already startedpublic boolean hasNext()
hasNext in interface Iterator<E>public E next()
next in interface Iterator<E>public void remove()
remove in interface Iterator<E>public static void main(String[] argv)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||