com.mhhe.clrs2e
Class LinkedList.ListIterator

java.lang.Object
  |
  +--com.mhhe.clrs2e.LinkedList.ListIterator
All Implemented Interfaces:
java.util.Iterator
Direct Known Subclasses:
LinearDLL.LinearDLLIterator, SentinelDLL.SentinelDLLIterator
Enclosing class:
LinkedList

public abstract class LinkedList.ListIterator
extends java.lang.Object
implements java.util.Iterator

Abstract inner class for an iterator.


Constructor Summary
LinkedList.ListIterator()
           
 
Method Summary
abstract  boolean hasNext()
          Returns true if this iterator has more elements, false otherwise.
abstract  java.lang.Object next()
          Returns the next element in the iteration.
abstract  void remove()
          Removes the last element returned by the iterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkedList.ListIterator

public LinkedList.ListIterator()
Method Detail

hasNext

public abstract boolean hasNext()
Returns true if this iterator has more elements, false otherwise.

Specified by:
hasNext in interface java.util.Iterator

next

public abstract java.lang.Object next()
Returns the next element in the iteration.

Specified by:
next in interface java.util.Iterator

remove

public abstract void remove()
Removes the last element returned by the iterator.

Specified by:
remove in interface java.util.Iterator