Class ListEnumeration

java.lang.Object
   |
   +----ListEnumeration

class ListEnumeration
extends Object
implements Enumeration

Variable Index

 o cursor

Constructor Index

 o ListEnumeration(Link)

Method Index

 o hasMoreElements()
 o nextElement()
move the iterator to the next position

Variables

 o cursor
 private Link cursor

Constructors

 o ListEnumeration
 public ListEnumeration(Link l)

Methods

 o hasMoreElements
 public boolean hasMoreElements()
Returns:
true iff the iterator is not at the end of the list.
 o nextElement
 public Object nextElement()
move the iterator to the next position

Returns:
the current element (before advancing the position)
Throws: NoSuchElementException
if already at the end of the list