|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.Ostermiller.util.ArrayEnumeration<ElementType>
ElementType - Type of object enumeratedpublic class ArrayEnumeration<ElementType>
Converts an array to an enumerator.
More information about this class is available from ostermiller.org.
| Constructor Summary | |
|---|---|
ArrayEnumeration(ElementType[] array)
Create an Enumeration from an Array. |
|
| Method Summary | |
|---|---|
boolean |
hasMoreElements()
Tests if this enumeration contains more elements. |
ElementType |
nextElement()
Returns the next element of this enumeration if this enumeration object has at least one more element to provide. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayEnumeration(ElementType[] array)
array - of objects on which to enumerate.| Method Detail |
|---|
public boolean hasMoreElements()
hasMoreElements in interface java.util.Enumeration<ElementType>
public ElementType nextElement()
throws java.util.NoSuchElementException
nextElement in interface java.util.Enumeration<ElementType>java.util.NoSuchElementException - if no more elements exist.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||