tyrex.util
public final class ArrayEnumeration extends Object implements Enumeration
Constructor Summary | |
---|---|
ArrayEnumeration(Object[] array)
Create the ArrayEnumeration with the specified array
| |
ArrayEnumeration(Object[] array, int start, int end)
Create the ArrayEnumeration with the specified arguments.
|
Method Summary | |
---|---|
boolean | hasMoreElements()
Return true if the enumeration has more elements to return.
|
Object | nextElement()
Return the next element in the enumeration.
|
Parameters: array the array to enumerate over
Parameters: array the array to enumerate over start the start index inclusive end the end index exclusive
Returns: true if the enumeration has more elements to return.
Returns: the next element in the enumeration.
Throws: NoSuchElementException if there are no more elements.