Class IteratorAdapter<E>

java.lang.Object
org.apache.struts.util.IteratorAdapter<E>
All Implemented Interfaces:
Iterator<E>

public class IteratorAdapter<E> extends Object implements Iterator<E>
Utility method for converting Enumeration to an Iterator class. If you attempt to remove() an Object from the iterator, it will throw an UnsupportedOperationException. Added for use by TagLib so Enumeration can be supported
Version:
$Rev$ $Date: 2005-05-07 12:11:38 -0400 (Sat, 07 May 2005) $
  • Constructor Details

    • IteratorAdapter

      public IteratorAdapter(Enumeration<E> e)
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<E>
    • next

      public E next()
      Specified by:
      next in interface Iterator<E>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<E>