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 ForwardingListIterator.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(E
the element to insert element)Implements java. |
| protected abstract ListIterator | delegate()
Implements abstract com. |
| public boolean | hasPrevious()
Implements java. true if this list iterator has more elements when
traversing the list in the reverse direction.
|
| public int | nextIndex()
Implements java. next.
|
| public E | previous()
Implements java. |
| public int | previousIndex()
Implements java. previous.
|
| public void | set(E
the element with which to replace the last element returned by
element)next or previousImplements java. next or
previous with the specified element (optional operation).
|
| ForwardingListIterator | back to summary |
|---|---|
| protected ForwardingListIterator() Constructor for use by subclasses. | |
| add | back to summary |
|---|---|
| public void add(E element) Implements java. Doc from java. Inserts the specified element into the list (optional operation).
The element is inserted immediately before the element that
would be returned by
| |
| delegate | back to summary |
|---|---|
| protected abstract ListIterator 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
| |
| hasPrevious | back to summary |
|---|---|
| public boolean hasPrevious() Implements java. Doc from java. Returns
| |
| nextIndex | back to summary |
|---|---|
| public int nextIndex() Implements java. Doc from java. Returns the index of the element that would be returned by a
subsequent call to
| |
| previous | back to summary |
|---|---|
| public E previous() Implements java. Doc from java. Returns the previous element in the list and moves the cursor
position backwards. This method may be called repeatedly to
iterate through the list backwards, or intermixed with calls to
| |
| previousIndex | back to summary |
|---|---|
| public int previousIndex() Implements java. Doc from java. Returns the index of the element that would be returned by a
subsequent call to
| |
| set | back to summary |
|---|---|
| public void set(E element) Implements java. Doc from java. Replaces the last element returned by
| |