public class EnumerationIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>
EnumerationIterator provides an iterator from an
Enumeration.| Constructor and Description |
|---|
EnumerationIterator(java.util.Enumeration<E> e) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Returns true if the iteration has more elements.
|
E |
next()
Returns the next element in the iteration.
|
void |
remove()
This method is not supported for enumerations.
|
private java.util.Enumeration<E> e
public EnumerationIterator(java.util.Enumeration<E> e)
public boolean hasNext()
hasNext in interface java.util.Iterator<E>public E next()
next in interface java.util.Iterator<E>public void remove()
remove in interface java.util.Iterator<E>