java.util.Iterator, OrderedIteratorprotected static class AbstractLinkedList.LinkedSubListIterator extends AbstractLinkedList.LinkedListIterator
| Modifier and Type | Field | Description |
|---|---|---|
protected AbstractLinkedList.LinkedSubList |
sub |
The parent list
|
current, expectedModCount, next, nextIndex, parent| Modifier | Constructor | Description |
|---|---|---|
protected |
LinkedSubListIterator(AbstractLinkedList.LinkedSubList sub,
int startIndex) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(java.lang.Object 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 sub
protected LinkedSubListIterator(AbstractLinkedList.LinkedSubList sub, int startIndex)
public boolean hasNext()
hasNext in interface java.util.IteratorhasNext in class AbstractLinkedList.LinkedListIteratorpublic boolean hasPrevious()
OrderedIteratorhasPrevious in interface OrderedIteratorhasPrevious in class AbstractLinkedList.LinkedListIteratortrue if the iterator has a previous elementpublic int nextIndex()
nextIndex in class AbstractLinkedList.LinkedListIteratorpublic void add(java.lang.Object obj)
add in class AbstractLinkedList.LinkedListIteratorpublic void remove()
remove in interface java.util.Iteratorremove in class AbstractLinkedList.LinkedListIteratorCopyright © 2001-2017 Apache Software Foundation. All Rights Reserved.