public class ArrayEnumeration extends Object implements Enumeration
| Constructor and Description |
|---|
ArrayEnumeration(Object[] objectarray)
Creates a new enumeration for the given array.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasMoreElements()
Returns true if this enumeration has at least one more Element.
|
Object |
nextElement()
Returns the next element in the Array.
|
public ArrayEnumeration(Object[] objectarray)
objectarray - the array over which to iterateNullPointerException - if the array is null.public boolean hasMoreElements()
hasMoreElements in interface Enumerationpublic Object nextElement()
nextElement in interface EnumerationNoSuchElementException - if no more elements exist.Copyright © 2018 Hitachi Vantara. All rights reserved.