Class AbstractLinkedList.LinkedSubListIterator<E>
java.lang.Object
org.apache.commons.collections4.list.AbstractLinkedList.LinkedListIterator<E>
org.apache.commons.collections4.list.AbstractLinkedList.LinkedSubListIterator<E>
- 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 parent listFields inherited from class AbstractLinkedList.LinkedListIterator
current, expectedModCount, next, nextIndex, parent -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLinkedSubListIterator(AbstractLinkedList.LinkedSubList<E> sub, int startIndex) -
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 parent list
-
-
Constructor Details
-
LinkedSubListIterator
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<E>- Specified by:
hasNextin interfaceListIterator<E>- Overrides:
hasNextin classAbstractLinkedList.LinkedListIterator<E>
-
hasPrevious
public boolean 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
public int nextIndex()- Specified by:
nextIndexin interfaceListIterator<E>- Overrides:
nextIndexin classAbstractLinkedList.LinkedListIterator<E>
-
add
- Specified by:
addin interfaceListIterator<E>- Overrides:
addin classAbstractLinkedList.LinkedListIterator<E>
-
remove
public void remove()- Specified by:
removein interfaceIterator<E>- Specified by:
removein interfaceListIterator<E>- Overrides:
removein classAbstractLinkedList.LinkedListIterator<E>
-