@GwtCompatible public abstract class ForwardingIterator<T> extends ForwardingObject implements java.util.Iterator<T>
Modifier | Constructor and Description |
---|---|
protected |
ForwardingIterator()
Constructor for use by subclasses.
|
Modifier and Type | Method and Description |
---|---|
protected abstract java.util.Iterator<T> |
delegate()
Returns the backing delegate instance that methods are forwarded to.
|
boolean |
hasNext() |
T |
next() |
void |
remove() |
toString
protected ForwardingIterator()
protected abstract java.util.Iterator<T> delegate()
ForwardingObject
ForwardingSet.delegate()
. Concrete subclasses override this method to supply
the instance being decorated.delegate
in class ForwardingObject
public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public void remove()
remove
in interface java.util.Iterator<T>