All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Acme.ArrayEnumerator

java.lang.Object
   |
   +----Acme.ArrayEnumerator

public class ArrayEnumerator
extends Object
implements Enumeration
Enumeration for an array of objects

Vectors come with a method to make an Enumeration, but if you're using arrays instead of Vectors you don't get that. Instead you can use this class to make an Enumeration for any array of Objects. It returns the contents of the array in order, optionally skipping any null elements.

Fetch the software.
Fetch the entire Acme package.


Constructor Index

 o ArrayEnumerator(Object[])
 o ArrayEnumerator(Object[], boolean)

Method Index

 o hasMoreElements()
 o nextElement()

Constructors

 o ArrayEnumerator
 public ArrayEnumerator(Object objects[])
 o ArrayEnumerator
 public ArrayEnumerator(Object objects[],
                        boolean skipNulls)

Methods

 o hasMoreElements
 public boolean hasMoreElements()
 o nextElement
 public Object nextElement()

All Packages  Class Hierarchy  This Package  Previous  Next  Index

ACME Java  ACME Labs