java.util
Class LinkedList.ListItr

java.lang.Object
  |
  +--java.util.LinkedList.ListItr

private class LinkedList.ListItr
extends Object
implements ListIterator


Field Summary
private  int expectedModCount
           
private  LinkedList.Entry lastReturned
           
private  LinkedList.Entry next
           
private  int nextIndex
           
 
Constructor Summary
(package private) LinkedList.ListItr(int index)
           
 
Method Summary
 void add(Object o)
           
(package private)  void checkForComodification()
           
 boolean hasNext()
           
 boolean hasPrevious()
           
 Object next()
           
 int nextIndex()
           
 Object previous()
           
 int previousIndex()
           
 void remove()
           
 void set(Object o)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

lastReturned

private LinkedList.Entry lastReturned

next

private LinkedList.Entry next

nextIndex

private int nextIndex

expectedModCount

private int expectedModCount
Constructor Detail

LinkedList.ListItr

LinkedList.ListItr(int index)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface ListIterator

next

public Object next()
Specified by:
next in interface ListIterator

hasPrevious

public boolean hasPrevious()
Specified by:
hasPrevious in interface ListIterator

previous

public Object previous()
Specified by:
previous in interface ListIterator

nextIndex

public int nextIndex()
Specified by:
nextIndex in interface ListIterator

previousIndex

public int previousIndex()
Specified by:
previousIndex in interface ListIterator

remove

public void remove()
Specified by:
remove in interface ListIterator

set

public void set(Object o)
Specified by:
set in interface ListIterator

add

public void add(Object o)
Specified by:
add in interface ListIterator

checkForComodification

final void checkForComodification()