Class AbstractLinkedListForJava21.LinkedSubListIterator<E>
java.lang.Object
org.apache.commons.collections4.list.AbstractLinkedListForJava21.LinkedListIterator<E>
org.apache.commons.collections4.list.AbstractLinkedListForJava21.LinkedSubListIterator<E>
- Type Parameters:
E
- the type of elements in this iterator.
- All Implemented Interfaces:
Iterator<E>
,ListIterator<E>
,OrderedIterator<E>
- Enclosing class:
- AbstractLinkedListForJava21<E>
protected static class AbstractLinkedListForJava21.LinkedSubListIterator<E>
extends AbstractLinkedListForJava21.LinkedListIterator<E>
A list iterator over the linked sub list.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AbstractLinkedListForJava21.LinkedSubList<E>
The sub listFields inherited from class org.apache.commons.collections4.list.AbstractLinkedListForJava21.LinkedListIterator
current, expectedModCount, next, nextIndex, parent
-
Constructor Summary
ModifierConstructorDescriptionprotected
LinkedSubListIterator
(AbstractLinkedListForJava21.LinkedSubList<E> sub, int startIndex) -
Method Summary
Methods inherited from class org.apache.commons.collections4.list.AbstractLinkedListForJava21.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 Details
-
sub
The sub list
-
-
Constructor Details
-
LinkedSubListIterator
-
-
Method Details
-
add
- Specified by:
add
in interfaceListIterator<E>
- Overrides:
add
in classAbstractLinkedListForJava21.LinkedListIterator<E>
-
hasNext
- Specified by:
hasNext
in interfaceIterator<E>
- Specified by:
hasNext
in interfaceListIterator<E>
- Overrides:
hasNext
in classAbstractLinkedListForJava21.LinkedListIterator<E>
-
hasPrevious
Description copied from interface:OrderedIterator
Checks to see if there is a previous element that can be iterated to.- Specified by:
hasPrevious
in interfaceListIterator<E>
- Specified by:
hasPrevious
in interfaceOrderedIterator<E>
- Overrides:
hasPrevious
in classAbstractLinkedListForJava21.LinkedListIterator<E>
- Returns:
true
if the iterator has a previous element
-
nextIndex
- Specified by:
nextIndex
in interfaceListIterator<E>
- Overrides:
nextIndex
in classAbstractLinkedListForJava21.LinkedListIterator<E>
-
remove
- Specified by:
remove
in interfaceIterator<E>
- Specified by:
remove
in interfaceListIterator<E>
- Overrides:
remove
in classAbstractLinkedListForJava21.LinkedListIterator<E>
-