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)

Constructor Index

 o ArrayEnumerator(Object[])
Class constructor.

Method Index

 o hasMoreElements()
Tests if this enumeration contains more elements.
 o nextElement()
Returns the next element of this enumeration.

Constructors

 o 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.

Methods

 o hasMoreElements
 public boolean hasMoreElements()
Tests if this enumeration contains more elements.

Returns:
true if this enumeration contains more elements; false otherwise.
 o 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