public class ArrayEnumeration<E>
extends java.lang.Object
implements java.util.Enumeration<E>
| Constructor and Description |
|---|
ArrayEnumeration(E[] array)
Constructs the Enumeration.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasMoreElements()
Returns, if there are more elements in the array.
|
E |
nextElement()
Returns the next element.
|
public ArrayEnumeration(E[] array)
a - an array with arbitrary elementspublic boolean hasMoreElements()
hasMoreElements in interface java.util.Enumeration<E>