All Packages Class Hierarchy This Package Previous Next Index
Class org.webmacro.util.EnumIterator
java.lang.Object
|
+----org.webmacro.util.EnumIterator
- public final class EnumIterator
- extends Object
- implements Iterator
Allow a Java 1.1 enumeration to be used as a JDK 1.2 style Iterator
-
EnumIterator(Enumeration)
- Construct an iterator given an enumeration
-
hasNext()
- Return true if we have not yet reached the end of the enumeration
-
main(String[])
- Test harness
-
next()
- Advance the iterator and return the next value.
-
remove()
- Unsupported
EnumIterator
public EnumIterator(Enumeration e)
- Construct an iterator given an enumeration
hasNext
public final boolean hasNext()
- Return true if we have not yet reached the end of the enumeration
next
public final Object next() throws NoSuchElementException
- Advance the iterator and return the next value. Return null if we
reach the end of the enumeration.
remove
public final void remove() throws UnsupportedOperationException
- Unsupported
main
public static void main(String arg[])
- Test harness
All Packages Class Hierarchy This Package Previous Next Index