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 Enumeration
public Object nextElement()
nextElement
in interface Enumeration
NoSuchElementException
- if no more elements exist.Copyright © 2019 Hitachi Vantara. All rights reserved.