@GwtCompatible public abstract class ForwardingIterator<T> extends ForwardingObjectimplements Iterator <T>
Modifier | Constructor and Description |
---|---|
protected |
ForwardingIterator()
Constructor for use by subclasses.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Iterator |
delegate()
Returns the backing delegate instance that methods are forwarded to.
|
boolean |
hasNext()
|
T |
next()
|
void |
remove()
|
toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEachRemaining
protected ForwardingIterator()
protected abstract Iterator<T> delegate()
ForwardingObject
ForwardingSet.delegate()
. Concrete subclasses override this method to supply the instance being decorated.
public boolean hasNext()
public T next()
public void remove()