org.apache.commons.collections
Class ArrayEnumeration

java.lang.Object
  |
  +--org.apache.commons.collections.ArrayEnumeration
All Implemented Interfaces:
java.util.Enumeration

Deprecated. This class has significant overlap with ArrayIterator, and Collections focuses mainly on Java2-style collections. If you need to enumerate an array, create an ArrayIterator and wrap it with an IteratorEnumeration instead.

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

Enumeration wrapper for array.

Since:
1.0
Author:
Peter Donald

Constructor Summary
ArrayEnumeration(java.util.List elements)
          Deprecated.  
ArrayEnumeration(java.lang.Object[] elements)
          Deprecated.  
 
Method Summary
 boolean hasMoreElements()
          Deprecated.  
 java.lang.Object nextElement()
          Deprecated.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayEnumeration

public ArrayEnumeration(java.util.List elements)
Deprecated. 

ArrayEnumeration

public ArrayEnumeration(java.lang.Object[] elements)
Deprecated. 
Method Detail

hasMoreElements

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

nextElement

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


Copyright © 2001-2004 The Apache Software Foundation. All Rights Reserved.