Documentation API of the 'org.clapper.util.misc.EnumerationIterator' Java class

Class EnumerationIterator<T>

  • All Implemented Interfaces:
    Iterable<T>, Iterator<T>

    public class EnumerationIterator<T>extends Objectimplements Iterator<T>, Iterable<T>

    The EnumerationIterator class is an adapter that makes a java.util.Enumeration object look and behave like a java.util.Iterator objects. The EnumerationIterator class implements the Iterator interface and wraps an existing Enumeration object. This class is the conceptual opposite of the Collections.enumeration() method in the java.util package.

    You can also use an instance of this class to wrap an Enumeration for use in a JDK 1.5-style for each loop. For instance:

     Vector v = ... for (String s : new EnumerationIterator (v.elements()))     ... 
    See Also:
    Iterator, Enumeration

Warning: You cannot see the full API documentation of this class since the access to the DatMelt documentation for third-party Java classes is denied. Guests can only view jhplot Java API. To view the complete description of this class and its methods, please request the full DataMelt membership.

If you are already a full member, please login to the DataMelt member area before visiting this documentation.