IteratorAdapter (Apache Struts API Documentation)
Keywords: org.apache.struts.util.IteratorAdapter,IteratorAdapter class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.struts.util
Class IteratorAdapter

    java.lang.Object
      |
      +--org.apache.struts.util.IteratorAdapter

All Implemented Interfaces:
  java.util.Iterator

Deprecated. Use commons-collections' IteratorUtils.asIterator(Enumeration).

public class IteratorAdapter
extends java.lang.Object
implements java.util.Iterator

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:
  $Revision: 1.1 $ $Date: 2003-08-22 09:43:31 +0100 (Fri, 22 Aug 2003) $
Author:
  Sean M. Kelley, Rob Leland

Field Summary
`private java.util.Enumeration` | `enum` Deprecated.

Constructor Summary
`IteratorAdapter(java.util.Enumeration enum)` Deprecated.

Method Summary
`boolean` | `hasNext()` Deprecated.
`java.lang.Object` | `next()` Deprecated.
`void` | `remove()` Deprecated.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### enum

    private java.util.Enumeration enum

  Deprecated.

Constructor Detail

### IteratorAdapter

    public IteratorAdapter(java.util.Enumeration enum)

  Deprecated.

Method Detail

### hasNext

    public boolean hasNext()

  Deprecated.
  Specified by:
    `hasNext` in interface `java.util.Iterator`

### next

    public java.lang.Object next()

  Deprecated.
  Specified by:
    `next` in interface `java.util.Iterator`

### remove

    public void remove()

  Deprecated.
  Specified by:
    `remove` in interface `java.util.Iterator`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2003 - Apache Software Foundation