All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class websphinx.util.ArrayEnumeration

java.lang.Object
   |
   +----websphinx.util.ArrayEnumeration

public class ArrayEnumeration
extends Object
implements Enumeration
Enumeration of an arbitrary array.


Constructor Index

 o ArrayEnumeration(Object[])
Make an ArrayEnumeration.

Method Index

 o hasMoreElements()
Test if enumeration has reached end.
 o nextElement()
Get next element of enumeration.

Constructors

 o ArrayEnumeration
 public ArrayEnumeration(Object array[])
Make an ArrayEnumeration.

Parameters:
array - Array to enumerate. May be null, if desired. (This is sometimes useful for producing an empty enumeration.)

Methods

 o hasMoreElements
 public boolean hasMoreElements()
Test if enumeration has reached end.

Returns:
true if more elements are available to be enumerated, false if all elements have been yielded by nextElement()
 o nextElement
 public Object nextElement()
Get next element of enumeration.

Returns:
next element of enumeration, advancing the enumeration pointer
Throws: NoSuchElementException
if no more elements

All Packages  Class Hierarchy  This Package  Previous  Next  Index