com.objectwave.utility
Class ArrayEnumeration

java.lang.Object
  |
  +--com.objectwave.utility.ArrayEnumeration
All Implemented Interfaces:
java.util.Enumeration

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

This is a handy class to perform an enumeration over any object array. Note that this enumeration class will not work with any arrays of primitive type (int, double, byte, etc) since they do not extend java.lang.Object.


Constructor Summary
ArrayEnumeration(java.lang.Object[] array)
           
 
Method Summary
 boolean hasMoreElements()
           
 java.lang.Object nextElement()
           
 void setDisplayFormatter(StringifyIF formater)
           
 
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)
Method Detail

setDisplayFormatter

public void setDisplayFormatter(StringifyIF formater)

hasMoreElements

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

nextElement

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