|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbyucc.jhdl.base.list.LinkedListEnumeration
This class allows public access to list traversals.
Constructor Summary | |
LinkedListEnumeration(LinkedList ll)
Initializer |
Method Summary | |
boolean |
hasMoreElements()
Returns true if more elements remain, useful as a while loop condition |
java.lang.Object |
nextElement()
Returns the next element in the enumeration, advancing the enumeration |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LinkedListEnumeration(LinkedList ll)
ll
- a LinkedList that this enumeration will coverMethod Detail |
public boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration
public java.lang.Object nextElement()
nextElement
in interface java.util.Enumeration
java.util.NoSuchElementException
- if already at end
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |