default method warning: This class forwards calls to only some default methods. Specifically, it forwards calls only for methods that existed before default
methods were introduced. For newer methods, like forEachRemaining, it inherits their
default implementations. When those implementations invoke methods, they invoke methods on the
ForwardingIterator.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract Iterator | delegate()
Implements abstract com. |
| public boolean | |
| public T | |
| public void | remove()
Overrides default java. |
| ForwardingIterator | back to summary |
|---|---|
| protected ForwardingIterator() Constructor for use by subclasses. | |
| delegate | back to summary |
|---|---|
| protected abstract Iterator Implements abstract com. Doc from com. Returns the backing delegate instance that methods are forwarded to. Abstract subclasses
generally override this method with an abstract method that has a more specific return type,
such as
| |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public T next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |