Class AbstractLinkedList.LinkedSubListIterator<E>
java.lang.Object
org.apache.commons.collections4.list.AbstractLinkedList.LinkedListIterator<E>
org.apache.commons.collections4.list.AbstractLinkedList.LinkedSubListIterator<E>
- Type Parameters:
- E- the type of elements in this iterator.
- All Implemented Interfaces:
- Iterator<E>,- ListIterator<E>,- OrderedIterator<E>
- Enclosing class:
- AbstractLinkedList<E>
protected static class AbstractLinkedList.LinkedSubListIterator<E>
extends AbstractLinkedList.LinkedListIterator<E>
A list iterator over the linked sub list.
- Since:
- 3.0
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final AbstractLinkedList.LinkedSubList<E> The sub list.Fields inherited from class org.apache.commons.collections4.list.AbstractLinkedList.LinkedListIteratorcurrent, expectedModCount, next, nextIndex, parent
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedLinkedSubListIterator(AbstractLinkedList.LinkedSubList<E> sub, int startIndex) Constructs a new instance.
- 
Method SummaryMethods inherited from class org.apache.commons.collections4.list.AbstractLinkedList.LinkedListIteratorcheckModCount, getLastNodeReturned, next, previous, previousIndex, setMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.IteratorforEachRemaining
- 
Field Details- 
subThe sub list.
 
- 
- 
Constructor Details- 
LinkedSubListIteratorConstructs a new instance.- Parameters:
- sub- The sub-list.
- startIndex- The starting index.
 
 
- 
- 
Method Details- 
add- Specified by:
- addin interface- ListIterator<E>
- Overrides:
- addin class- AbstractLinkedList.LinkedListIterator<E>
 
- 
hasNext- Specified by:
- hasNextin interface- Iterator<E>
- Specified by:
- hasNextin interface- ListIterator<E>
- Overrides:
- hasNextin class- AbstractLinkedList.LinkedListIterator<E>
 
- 
hasPreviousDescription copied from interface:OrderedIteratorChecks to see if there is a previous element that can be iterated to.- Specified by:
- hasPreviousin interface- ListIterator<E>
- Specified by:
- hasPreviousin interface- OrderedIterator<E>
- Overrides:
- hasPreviousin class- AbstractLinkedList.LinkedListIterator<E>
- Returns:
- trueif the iterator has a previous element
 
- 
nextIndex- Specified by:
- nextIndexin interface- ListIterator<E>
- Overrides:
- nextIndexin class- AbstractLinkedList.LinkedListIterator<E>
 
- 
remove- Specified by:
- removein interface- Iterator<E>
- Specified by:
- removein interface- ListIterator<E>
- Overrides:
- removein class- AbstractLinkedList.LinkedListIterator<E>
 
 
-