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) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
java.lang.Object |
next() |
void |
remove()
Since
Enumerations don't support element removal, this method always throws
an UnsupportedOperationException. |
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
Enumerations don't support element removal, this method always throws
an UnsupportedOperationException.remove in interface java.util.IteratorIterator.remove()