de.intarsys.tools.collection
Class NestedIterator
java.lang.Object
de.intarsys.tools.collection.NestedIterator
- All Implemented Interfaces:
- java.util.Iterator
public class NestedIterator
- extends java.lang.Object
- implements java.util.Iterator
An iterator to enumerate sequentially the elements in a hierarchical
collection.
Every node that implements IIteratorSupport itself is enumerated instead of
beeing returned imediately.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NestedIterator
public NestedIterator(java.util.Iterator i)
NestedIterator
public NestedIterator(java.util.List l)
test1
public static void test1()
createInnerIterator
protected void createInnerIterator()
getInnerIterator
protected java.util.Iterator getInnerIterator()
getOuterCurrent
protected java.lang.Object getOuterCurrent()
getOuterIterator
protected java.util.Iterator getOuterIterator()
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator
next
public java.lang.Object next()
- Specified by:
next
in interface java.util.Iterator
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator