Class AbstractLinkedList.LinkedSubListIterator
- java.lang.Object
-
- org.apache.commons.collections.list.AbstractLinkedList.LinkedListIterator
-
- org.apache.commons.collections.list.AbstractLinkedList.LinkedSubListIterator
-
- All Implemented Interfaces:
Iterator,ListIterator,OrderedIterator
- Enclosing class:
- AbstractLinkedList
protected static class AbstractLinkedList.LinkedSubListIterator extends AbstractLinkedList.LinkedListIterator
A list iterator over the linked sub list.
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractLinkedList.LinkedSubListsubThe parent list-
Fields inherited from class org.apache.commons.collections.list.AbstractLinkedList.LinkedListIterator
current, expectedModCount, next, nextIndex, parent
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLinkedSubListIterator(AbstractLinkedList.LinkedSubList sub, int startIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Object obj)booleanhasNext()booleanhasPrevious()Checks to see if there is a previous element that can be iterated to.intnextIndex()voidremove()-
Methods inherited from class org.apache.commons.collections.list.AbstractLinkedList.LinkedListIterator
checkModCount, getLastNodeReturned, next, previous, previousIndex, set
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Field Detail
-
sub
protected final AbstractLinkedList.LinkedSubList sub
The parent list
-
-
Constructor Detail
-
LinkedSubListIterator
protected LinkedSubListIterator(AbstractLinkedList.LinkedSubList sub, int startIndex)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceIterator- Specified by:
hasNextin interfaceListIterator- Overrides:
hasNextin classAbstractLinkedList.LinkedListIterator
-
hasPrevious
public boolean hasPrevious()
Description copied from interface:OrderedIteratorChecks to see if there is a previous element that can be iterated to.- Specified by:
hasPreviousin interfaceListIterator- Specified by:
hasPreviousin interfaceOrderedIterator- Overrides:
hasPreviousin classAbstractLinkedList.LinkedListIterator- Returns:
trueif the iterator has a previous element
-
nextIndex
public int nextIndex()
- Specified by:
nextIndexin interfaceListIterator- Overrides:
nextIndexin classAbstractLinkedList.LinkedListIterator
-
add
public void add(Object obj)
- Specified by:
addin interfaceListIterator- Overrides:
addin classAbstractLinkedList.LinkedListIterator
-
remove
public void remove()
- Specified by:
removein interfaceIterator- Specified by:
removein interfaceListIterator- Overrides:
removein classAbstractLinkedList.LinkedListIterator
-
-