public class TraversingIterator extends Object implements Iterator
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 and Description |
|---|
TraversingIterator(Iterator delegate) |
public TraversingIterator(Iterator delegate)
public void remove()
remove in interface IteratorUnsupportedOperationException - iff the Iterator currently being
traversed doesn't support element removalIterator.remove()Copyright © 2001-2012. All Rights Reserved.