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.


Constructor Index

 o ArrayEnumerator(Object[])
Enumeraition traverses.

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[])
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