org.apache.commons.collections
Class EnumerationIterator
java.lang.Object
|
+--org.apache.commons.collections.EnumerationIterator
- All Implemented Interfaces:
- Iterator
- public class EnumerationIterator
- extends Object
- implements Iterator
Adapter to make Enumeration
instances appear
to be Iterator
instances.
- Author:
- James Strachan, Daniel Rall
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnumerationIterator
public EnumerationIterator()
EnumerationIterator
public EnumerationIterator(Enumeration enumeration)
EnumerationIterator
public EnumerationIterator(Enumeration enum,
Collection collection)
getEnumeration
public Enumeration getEnumeration()
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator
next
public Object next()
- Specified by:
next
in interface Iterator
remove
public void remove()
- Functions if an associated
Collection
is known.
- Specified by:
remove
in interface Iterator
- Throws:
IllegalStateException
- next()
not called.UnsupportedOperationException
- No associated
Collection
.
setEnumeration
public void setEnumeration(Enumeration enumeration)
Copyright © 2001 Apache Software Foundation. Documenation generated April 2 2002.