org.jwarp.util
Class ArrayEnumeration
java.lang.Object
|
+--org.jwarp.util.ArrayEnumeration
- All Implemented Interfaces:
- java.util.Enumeration
- public final class ArrayEnumeration
- extends java.lang.Object
- implements java.util.Enumeration
Enumeration wrapper for array.
- Author:
- Anatole Tresch
|
Field Summary |
protected java.lang.Object[] |
elements
Object[] elements |
protected int |
index
int index |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
elements
protected java.lang.Object[] elements
- Object[] elements
index
protected int index
- int index
ArrayEnumeration
public ArrayEnumeration(java.util.List elements)
- Parameters:
elements - parameter for
ArrayEnumeration
public ArrayEnumeration(java.lang.Object[] elements)
- Parameters:
elements - parameter for
hasMoreElements
public boolean hasMoreElements()
- hasMoreElements
- Specified by:
hasMoreElements in interface java.util.Enumeration
- Returns:
- the returned boolean
nextElement
public java.lang.Object nextElement()
- nextElement
- Specified by:
nextElement in interface java.util.Enumeration
- Returns:
- the returned Object