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 |
LinkedSubListIterator(AbstractLinkedList.LinkedSubList sub,
int startIndex) |
| Modifier and Type | Method and 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 interface java.util.ListIteratorhasNext in class AbstractLinkedList.LinkedListIteratorpublic boolean hasPrevious()
OrderedIteratorhasPrevious in interface java.util.ListIteratorhasPrevious in interface OrderedIteratorhasPrevious in class AbstractLinkedList.LinkedListIteratortrue if the iterator has a previous elementpublic int nextIndex()
nextIndex in interface java.util.ListIteratornextIndex in class AbstractLinkedList.LinkedListIteratorpublic void add(java.lang.Object obj)
add in interface java.util.ListIteratoradd in class AbstractLinkedList.LinkedListIteratorpublic void remove()
remove in interface java.util.Iteratorremove in interface java.util.ListIteratorremove in class AbstractLinkedList.LinkedListIteratorCopyright © 2001-2025 Apache Software Foundation. All Rights Reserved.