Class AbstractLinkedListJava21.LinkedSubListIterator<E>
java.lang.Object
org.apache.commons.collections4.list.AbstractLinkedListJava21.LinkedListIterator<E>
org.apache.commons.collections4.list.AbstractLinkedListJava21.LinkedSubListIterator<E>
- Type Parameters:
E- the type of elements in this iterator.
- All Implemented Interfaces:
Iterator<E>, ListIterator<E>, OrderedIterator<E>
- Enclosing class:
AbstractLinkedListJava21<E>
protected static class AbstractLinkedListJava21.LinkedSubListIterator<E>
extends AbstractLinkedListJava21.LinkedListIterator<E>
A list iterator over the linked sub list.
- Since:
- 4.5.0-M3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AbstractLinkedListJava21.LinkedSubList<E> The sub listFields inherited from class AbstractLinkedListJava21.LinkedListIterator
current, expectedModCount, next, nextIndex, parent -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLinkedSubListIterator(AbstractLinkedListJava21.LinkedSubList<E> sub, int startIndex) Constructs a new instance. -
Method Summary
Methods inherited from class AbstractLinkedListJava21.LinkedListIterator
checkModCount, getLastNodeReturned, next, previous, previousIndex, setMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Field Details
-
sub
The sub list
-
-
Constructor Details
-
LinkedSubListIterator
Constructs a new instance.- Parameters:
sub- The sub-list.startIndex- The starting index.
-
-
Method Details
-
add
- Specified by:
addin interfaceListIterator<E>- Overrides:
addin classAbstractLinkedListJava21.LinkedListIterator<E>
-
hasNext
- Specified by:
hasNextin interfaceIterator<E>- Specified by:
hasNextin interfaceListIterator<E>- Overrides:
hasNextin classAbstractLinkedListJava21.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 classAbstractLinkedListJava21.LinkedListIterator<E>- Returns:
trueif the iterator has a previous element
-
nextIndex
- Specified by:
nextIndexin interfaceListIterator<E>- Overrides:
nextIndexin classAbstractLinkedListJava21.LinkedListIterator<E>
-
remove
- Specified by:
removein interfaceIterator<E>- Specified by:
removein interfaceListIterator<E>- Overrides:
removein classAbstractLinkedListJava21.LinkedListIterator<E>
-