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, set
protected final AbstractLinkedList.LinkedSubList sub
protected AbstractLinkedList.LinkedSubListIterator(AbstractLinkedList.LinkedSubList sub, int startIndex)
public boolean hasNext()
hasNext
in interface Iterator
hasNext
in interface ListIterator
hasNext
in class AbstractLinkedList.LinkedListIterator
public boolean hasPrevious()
OrderedIterator
hasPrevious
in interface ListIterator
hasPrevious
in interface OrderedIterator
hasPrevious
in class AbstractLinkedList.LinkedListIterator
true
if the iterator has a previous elementpublic int nextIndex()
nextIndex
in interface ListIterator
nextIndex
in class AbstractLinkedList.LinkedListIterator
public void add(Object obj)
add
in interface ListIterator
add
in class AbstractLinkedList.LinkedListIterator
public void remove()
remove
in interface Iterator
remove
in interface ListIterator
remove
in class AbstractLinkedList.LinkedListIterator
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.