org.castor.core.util
Class EnumerationIterator
java.lang.Object
org.castor.core.util.EnumerationIterator
- All Implemented Interfaces:
- Iterator
public final class EnumerationIterator
- extends Object
- implements Iterator
Convert an enumeration to an iterator.
- Since:
- 1.0.4
- Version:
- $Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
- Author:
- Ralf Joachim
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnumerationIterator
public EnumerationIterator(Enumeration enumeration)
- Construct an iterator for given enumeration.
- Parameters:
enumeration
- Enumeration to iterate over.
hasNext
public boolean hasNext()
-
- Specified by:
hasNext
in interface Iterator
next
public Object next()
-
- Specified by:
next
in interface Iterator
remove
public void remove()
-
- Specified by:
remove
in interface Iterator
Copyright © 2012. All Rights Reserved.