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


Constructor Index

 o EnumIterator(Enumeration)
Construct an iterator given an enumeration

Method Index

 o hasNext()
Return true if we have not yet reached the end of the enumeration
 o main(String[])
Test harness
 o next()
Advance the iterator and return the next value.
 o remove()
Unsupported

Constructors

 o EnumIterator
 public EnumIterator(Enumeration e)
Construct an iterator given an enumeration

Methods

 o hasNext
 public final boolean hasNext()
Return true if we have not yet reached the end of the enumeration

 o 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.

 o remove
 public final void remove() throws UnsupportedOperationException
Unsupported

 o main
 public static void main(String arg[])
Test harness


All Packages  Class Hierarchy  This Package  Previous  Next  Index