Class EnumerationIterator<E>

java.lang.Object
org.bzdev.util.EnumerationIterator<E>
Type Parameters:
E - the type of the object produced by this iterator and the enumeration it encapsulates
All Implemented Interfaces:
Iterator<E>

public class EnumerationIterator<E> extends Object implements Iterator<E>
Class for an Iterator whose implementation uses an Enumeration. The Iterator class was introduced in Java 1.2 as an improvement over the Enumeration class. Unfortunately, some APIs require an Enumeration and others require an Iterator. This class provides a bridge between the two APIs.