|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttyrex.util.ArrayEnumeration
This class provides a way to enumerate over an array. The array is not cloned.
| Constructor Summary | |
ArrayEnumeration(java.lang.Object[] array)
Create the ArrayEnumeration with the specified array |
|
ArrayEnumeration(java.lang.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. |
java.lang.Object |
nextElement()
Return the next element in the enumeration. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ArrayEnumeration(java.lang.Object[] array)
array - the array to enumerate over
public ArrayEnumeration(java.lang.Object[] array,
int start,
int end)
array - the array to enumerate overstart - the start index inclusiveend - the end index exclusive| Method Detail |
public boolean hasMoreElements()
hasMoreElements in interface java.util.Enumerationpublic java.lang.Object nextElement()
nextElement in interface java.util.Enumerationjava.util.NoSuchElementException - if there are no more
elements.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||