protected static class AbstractLinkedList.LinkedSubListIterator extends AbstractLinkedList.LinkedListIterator
| Modifier and Type | Field and Description |
|---|---|
protected AbstractLinkedList.LinkedSubList |
sub
The parent list
|
current, expectedModCount, next, nextIndex, parent| Modifier | Constructor and Description |
|---|---|
protected |
AbstractLinkedList.LinkedSubListIterator(AbstractLinkedList.LinkedSubList sub,
int startIndex) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(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 AbstractLinkedList.LinkedSubListIterator(AbstractLinkedList.LinkedSubList sub, int startIndex)
public boolean hasNext()
hasNext in interface IteratorhasNext in interface ListIteratorhasNext in class AbstractLinkedList.LinkedListIteratorpublic boolean hasPrevious()
OrderedIteratorhasPrevious in interface ListIteratorhasPrevious in interface OrderedIteratorhasPrevious in class AbstractLinkedList.LinkedListIteratortrue if the iterator has a previous elementpublic int nextIndex()
nextIndex in interface ListIteratornextIndex in class AbstractLinkedList.LinkedListIteratorpublic void add(Object obj)
add in interface ListIteratoradd in class AbstractLinkedList.LinkedListIteratorpublic void remove()
remove in interface Iteratorremove in interface ListIteratorremove in class AbstractLinkedList.LinkedListIteratorCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.