org.apache.commons.collections
Class IteratorEnumeration
java.lang.Object
|
+--org.apache.commons.collections.IteratorEnumeration
- All Implemented Interfaces:
- Enumeration
- public class IteratorEnumeration
- extends Object
- implements Enumeration
Adapter to make an Iterator
instance appear to be an Enumeration
instances
- Author:
- James Strachan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IteratorEnumeration
public IteratorEnumeration()
IteratorEnumeration
public IteratorEnumeration(Iterator iterator)
getIterator
public Iterator getIterator()
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interface Enumeration
nextElement
public Object nextElement()
- Specified by:
nextElement
in interface Enumeration
setIterator
public void setIterator(Iterator iterator)
Copyright © 2001 Apache Software Foundation. Documenation generated April 2 2002.