public abstract class DelegatingIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>
Iterator which delegates all method calls to another given Iterator.
This class is abstract and is meant to be a convenient way of composing Iterators despite the lack of native support for the decoration pattern in
Java.
| Constructor and Description |
|---|
DelegatingIterator(java.util.Iterator<E> delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
E |
next() |
void |
remove() |
public DelegatingIterator(java.util.Iterator<E> delegate)