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$
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


Copyright © 2000-2003 - Apache Software Foundation