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
Enumeration s don't support element removal, this method always throws
an UnsupportedOperationException . |
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()