org.apache.struts.util
Class IteratorAdapter
java.lang.Object
|
+--org.apache.struts.util.IteratorAdapter
- All Implemented Interfaces:
- java.util.Iterator
- 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:
- $Rev: 164530 $ $Date: 2005-04-25 04:11:07 +0100 (Mon, 25 Apr 2005) $
Field Summary |
private java.util.Enumeration |
e
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
e
private java.util.Enumeration e
IteratorAdapter
public IteratorAdapter(java.util.Enumeration e)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator
next
public java.lang.Object next()
- Specified by:
next
in interface java.util.Iterator
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator
Copyright © 2000-2005 - The Apache Software Foundation