Package algs13
Class LinkedList.LinkedListIterator
java.lang.Object
algs13.LinkedList.LinkedListIterator
- All Implemented Interfaces:
Iterator<T>
,ListIterator<T>
- Enclosing class:
LinkedList<T>
-
Field Summary
Modifier and TypeFieldDescriptionprivate LinkedList.Node
<T> private int
private LinkedList.Node
<T> private long
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
hasPrevious
in interfaceListIterator<T>
-
previousIndex
- Specified by:
previousIndex
in interfaceListIterator<T>
-
nextIndex
- Specified by:
nextIndex
in interfaceListIterator<T>
-
next
-
previous
- Specified by:
previous
in interfaceListIterator<T>
-
set
- Specified by:
set
in interfaceListIterator<T>
-
remove
-
add
- Specified by:
add
in interfaceListIterator<T>
-