com.deltax.util
Class ArrayEnumeration

java.lang.Object
  extended bycom.deltax.util.ArrayEnumeration
All Implemented Interfaces:
java.util.Enumeration

public class ArrayEnumeration
extends java.lang.Object
implements java.util.Enumeration

A resettable Enumeration over an array.

Author:
cris

Constructor Summary
ArrayEnumeration(java.lang.Object[] array)
          Constructor for ArrayEnumeration.
 
Method Summary
 java.lang.Object[] getArray()
          Returns the array.
 boolean hasMoreElements()
           
 java.lang.Object nextElement()
           
 void reset()
          Reset the enumeration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayEnumeration

public ArrayEnumeration(java.lang.Object[] array)
Constructor for ArrayEnumeration.

Method Detail

reset

public void reset()
Reset the enumeration.


hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface java.util.Enumeration
See Also:
Enumeration.hasMoreElements()

nextElement

public java.lang.Object nextElement()
Specified by:
nextElement in interface java.util.Enumeration
See Also:
Enumeration.nextElement()

getArray

public java.lang.Object[] getArray()
Returns the array.

Returns:
Object[]