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.
-
ArrayEnumeration(Object[])
- Make an ArrayEnumeration.
-
hasMoreElements()
- Test if enumeration has reached end.
-
nextElement()
- Get next element of enumeration.
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.)
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()
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