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 Summary
FieldsModifier and TypeFieldDescriptionprotected final AbstractLinkedList.LinkedSubList<E> The sub list.Fields inherited from class AbstractLinkedList.LinkedListIterator
current, expectedModCount, next, nextIndex, parent -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLinkedSubListIterator(AbstractLinkedList.LinkedSubList<E> sub, int startIndex) Constructs a new instance. -
Method Summary
Methods inherited from class AbstractLinkedList.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 classAbstractLinkedList.LinkedListIterator<E>
-
hasNext
- Specified by:
hasNextin interfaceIterator<E>- Specified by:
hasNextin interfaceListIterator<E>- Overrides:
hasNextin classAbstractLinkedList.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 classAbstractLinkedList.LinkedListIterator<E>- Returns:
trueif the iterator has a previous element
-
nextIndex
- Specified by:
nextIndexin interfaceListIterator<E>- Overrides:
nextIndexin classAbstractLinkedList.LinkedListIterator<E>
-
remove
- Specified by:
removein interfaceIterator<E>- Specified by:
removein interfaceListIterator<E>- Overrides:
removein classAbstractLinkedList.LinkedListIterator<E>
-