All Packages Class Hierarchy This Package Previous Next Index
Class jdsl.core.ref.ArrayEnumerator
java.lang.Object
|
+----jdsl.core.ref.ArrayEnumerator
- public class ArrayEnumerator
- extends Object
- implements Enumeration
An array based enumerator to implement enumerations efficiently for jdsl
structures.
- Version:
- $Revision: 1.5 $, $Date: 1998/07/13 18:45:52 $
- Author:
- Mike Boilen (mgb)
-
ArrayEnumerator(Object[])
- Class constructor.
-
hasMoreElements()
- Tests if this enumeration contains more elements.
-
nextElement()
- Returns the next element of this enumeration.
ArrayEnumerator
public ArrayEnumerator(Object array[])
- Class constructor. Uses the array to store the elements that this
Enumeraition traverses. The array is NOT copied.
- Parameters:
- array - The elements that this enumeration should traverse.
hasMoreElements
public boolean hasMoreElements()
- Tests if this enumeration contains more elements.
- Returns:
-
true
if this enumeration contains more elements;
false
otherwise.
nextElement
public Object nextElement()
- Returns the next element of this enumeration.
- Returns:
- the next element of this enumeration.
- Throws: NoSuchElementException
- if no more elements exist.
All Packages Class Hierarchy This Package Previous Next Index