protected static class AbstractLinkedList.LinkedSubListIterator<E> extends AbstractLinkedList.LinkedListIterator<E>
| Modifier and Type | Field and Description |
|---|---|
protected AbstractLinkedList.LinkedSubList<E> |
sub
The parent list
|
current, expectedModCount, next, nextIndex, parent| Modifier | Constructor and Description |
|---|---|
protected |
AbstractLinkedList.LinkedSubListIterator(AbstractLinkedList.LinkedSubList<E> sub,
int startIndex) |
| Modifier and Type | Method and 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 AbstractLinkedList.LinkedSubListIterator(AbstractLinkedList.LinkedSubList<E> sub, int startIndex)
public boolean hasNext()
hasNext in interface Iterator<E>hasNext in interface ListIterator<E>hasNext in class AbstractLinkedList.LinkedListIterator<E>public boolean hasPrevious()
OrderedIteratorhasPrevious in interface ListIterator<E>hasPrevious in interface OrderedIterator<E>hasPrevious in class AbstractLinkedList.LinkedListIterator<E>true if the iterator has a previous elementpublic int nextIndex()
nextIndex in interface ListIterator<E>nextIndex in class AbstractLinkedList.LinkedListIterator<E>public void add(E obj)
add in interface ListIterator<E>add in class AbstractLinkedList.LinkedListIterator<E>public void remove()
remove in interface Iterator<E>remove in interface ListIterator<E>remove in class AbstractLinkedList.LinkedListIterator<E>Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.