java.util.Iterator<E>, OrderedIterator<E>protected static class AbstractLinkedList.LinkedSubListIterator<E> extends AbstractLinkedList.LinkedListIterator<E>
| Modifier and Type | Field | Description |
|---|---|---|
protected AbstractLinkedList.LinkedSubList<E> |
sub |
The parent list
|
current, expectedModCount, next, nextIndex, parent| Modifier | Constructor | Description |
|---|---|---|
protected |
LinkedSubListIterator(AbstractLinkedList.LinkedSubList<E> sub,
int startIndex) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(E obj) |
|
boolean |
hasNext() |
|
boolean |
hasPrevious() |
Checks to see if there is a previous element that can be iterated to.
|
int |
nextIndex() |
|
void |
remove() |
checkModCount, getLastNodeReturned, next, previous, previousIndex, setprotected final AbstractLinkedList.LinkedSubList<E> sub
protected LinkedSubListIterator(AbstractLinkedList.LinkedSubList<E> sub, int startIndex)
public boolean hasNext()
hasNext in interface java.util.Iterator<E>hasNext in class AbstractLinkedList.LinkedListIterator<E>public boolean hasPrevious()
OrderedIteratorhasPrevious in interface OrderedIterator<E>hasPrevious in class AbstractLinkedList.LinkedListIterator<E>true if the iterator has a previous elementpublic int nextIndex()
nextIndex in class AbstractLinkedList.LinkedListIterator<E>public void add(E obj)
add in class AbstractLinkedList.LinkedListIterator<E>public void remove()
remove in interface java.util.Iterator<E>remove in class AbstractLinkedList.LinkedListIterator<E>Copyright © 2001-2019 - Apache Software Foundation