Package algs13
Class LinkedList.LinkedListIterator
java.lang.Object
algs13.LinkedList.LinkedListIterator
- All Implemented Interfaces:
Iterator<T>,ListIterator<T>
- Enclosing class:
LinkedList<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate LinkedList.Node<T> private intprivate LinkedList.Node<T> private long -
Constructor Summary
Constructors -
Method Summary
Methods 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
-
current
-
lastAccessed
-
index
-
oc
-
-
Constructor Details
-
LinkedListIterator
private LinkedListIterator()
-
-
Method Details
-
ocCheck
-
ocInc
-
hasNext
-
hasPrevious
- Specified by:
hasPreviousin interfaceListIterator<T>
-
previousIndex
- Specified by:
previousIndexin interfaceListIterator<T>
-
nextIndex
- Specified by:
nextIndexin interfaceListIterator<T>
-
next
-
previous
- Specified by:
previousin interfaceListIterator<T>
-
set
- Specified by:
setin interfaceListIterator<T>
-
remove
-
add
- Specified by:
addin interfaceListIterator<T>
-