public class EnumIterator extends java.lang.Object implements Iterator
Enumeration
.Constructor and Description |
---|
EnumIterator(java.util.Enumeration enumeration)
Constructor declaration
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Checks whether the iterator can scan further by looking at the
underlying
Enumeration . |
java.lang.Object |
next()
Retrieves the next element in the collection scanned by this
iterator, forwarding the request to the underlying
Enumeration . |
void |
remove()
Remove the element pointed to by this iterator.
|
public EnumIterator(java.util.Enumeration enumeration)
public boolean hasNext()
Enumeration
.hasNext
in interface java.util.Iterator
hasMoreElements()
method of the underlying Enumeration
..public java.lang.Object next()
Enumeration
.next
in interface java.util.Iterator
nextElement()
of
the underlying Enumeration
.public void remove()
remove
in interface java.util.Iterator