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
FieldsModifier 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
ConstructorsModifierConstructorDescriptionprotectedLinkedSubListIterator(AbstractLinkedListForJava21.LinkedSubList<E> sub, int startIndex) -
Method Summary
Methods inherited from class org.apache.commons.collections4.list.AbstractLinkedListForJava21.LinkedListIterator
checkModCount, getLastNodeReturned, next, previous, previousIndex, setMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
sub
The sub list
-
-
Constructor Details
-
LinkedSubListIterator
-
-
Method Details
-
add
- Specified by:
addin interfaceListIterator<E>- Overrides:
addin classAbstractLinkedListForJava21.LinkedListIterator<E>
-
hasNext
- Specified by:
hasNextin interfaceIterator<E>- Specified by:
hasNextin interfaceListIterator<E>- Overrides:
hasNextin classAbstractLinkedListForJava21.LinkedListIterator<E>
-
hasPrevious
Description copied from interface:OrderedIteratorChecks to see if there is a previous element that can be iterated to.- Specified by:
hasPreviousin interfaceListIterator<E>- Specified by:
hasPreviousin interfaceOrderedIterator<E>- Overrides:
hasPreviousin classAbstractLinkedListForJava21.LinkedListIterator<E>- Returns:
trueif the iterator has a previous element
-
nextIndex
- Specified by:
nextIndexin interfaceListIterator<E>- Overrides:
nextIndexin classAbstractLinkedListForJava21.LinkedListIterator<E>
-
remove
- Specified by:
removein interfaceIterator<E>- Specified by:
removein interfaceListIterator<E>- Overrides:
removein classAbstractLinkedListForJava21.LinkedListIterator<E>
-