java.lang.Object
org.jdaemon.util.iterator.EnumerationIterator
- All Implemented Interfaces:
- java.util.Iterator
- public class EnumerationIterator
- extends java.lang.Object
- implements java.util.Iterator
|
Method Summary |
boolean |
hasNext()
True if more elements exist in parent enumeration |
java.lang.Object |
next()
Get next element in parent enumeration |
void |
remove()
Remove from the underlying collection the last element returned by next
(optional operation). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
enum
private java.util.Enumeration enum
- Parent enumeration
EnumerationIterator
public EnumerationIterator(java.util.Enumeration enum)
- Creates new EnumerationIterator
hasNext
public boolean hasNext()
- True if more elements exist in parent enumeration
- Specified by:
hasNext in interface java.util.Iterator
next
public java.lang.Object next()
- Get next element in parent enumeration
- Specified by:
next in interface java.util.Iterator
remove
public void remove()
- Description copied from interface:
java.util.Iterator
- Remove from the underlying collection the last element returned by next
(optional operation). This method can be called only once after each
call to
next(). It does not affect what will be returned
by subsequent calls to next.
- Specified by:
remove in interface java.util.Iterator