de.intarsys.tools.collection
public class EnumerationIterator extends java.lang.Object implements java.util.Iterator
Constructor and Description |
---|
EnumerationIterator(java.util.Enumeration e)
Create an Iterator over an enumeration.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Enumeration |
getEnumeration() |
boolean |
hasNext()
Return
true if underlying enumeration still has elements. |
java.lang.Object |
next()
Return the next element from the underlying enumeration.
|
void |
remove() |
public EnumerationIterator(java.util.Enumeration e)
e
- The enumeration to be iterated.protected java.util.Enumeration getEnumeration()
public boolean hasNext()
true
if underlying enumeration still has elements.hasNext
in interface java.util.Iterator
true
if underlying enumeration still has elements.public java.lang.Object next()
next
in interface java.util.Iterator
java.util.NoSuchElementException
public void remove()
remove
in interface java.util.Iterator