Class TraversingIterator
java.lang.Object
org.codehaus.janino.util.iterator.TraversingIterator
- All Implemented Interfaces:
Iterator
An
Iterator that iterates over a delegate, and while
it encounters an array, a Collection, an
Enumeration or a Iterator element, it iterates
into it recursively.
Be aware that hasNext() must read ahead one element.
-
Constructor Details
-
TraversingIterator
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove()- Specified by:
removein interfaceIterator- Throws:
UnsupportedOperationException- iff theIteratorcurrently being traversed doesn't support element removal- See Also:
-