Class ListEnumeration
java.lang.Object
|
+----ListEnumeration
- class ListEnumeration
- extends Object
- implements Enumeration
-
cursor
-
-
ListEnumeration(Link)
-
-
hasMoreElements()
-
-
nextElement()
- move the iterator to the next position
cursor
private Link cursor
ListEnumeration
public ListEnumeration(Link l)
hasMoreElements
public boolean hasMoreElements()
- Returns:
- true iff the iterator is not at the end of the list.
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