public class EnumerationIterator
extends java.lang.Object
implements java.util.Iterator
Iterator
that iterates over the elements of an
Enumeration
.Constructor and Description |
---|
EnumerationIterator(java.util.Enumeration e) |
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
Enumeration
s don't support element removal, this method always throws
an UnsupportedOperationException
.remove
in interface java.util.Iterator
Iterator.remove()