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.
-
ArrayEnumerator(Object[])
- Enumeraition traverses.
-
hasMoreElements()
- Tests if this enumeration contains more elements.
-
nextElement()
- Returns the next element of this enumeration.
ArrayEnumerator
public ArrayEnumerator(Object array[])
- 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