ElementType - type of object over which to iteratepublic class EnumerationIterator<ElementType>
extends java.lang.Object
implements java.util.Iterator<ElementType>
More information about this class is available from ostermiller.org.
| Constructor and Description |
|---|
EnumerationIterator(java.util.Enumeration<ElementType> enumeration)
Create an Iterator from an Enumeration.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Tests if this Iterator contains more elements.
|
ElementType |
next()
Returns the next element of this Iterator if this Iterator
object has at least one more element to provide.
|
void |
remove()
Operation not supported.
|
public EnumerationIterator(java.util.Enumeration<ElementType> enumeration)
enumeration - Enumeration to convert to an Iterator.public boolean hasNext()
hasNext in interface java.util.Iterator<ElementType>public ElementType next() throws java.util.NoSuchElementException
next in interface java.util.Iterator<ElementType>java.util.NoSuchElementException - if no more elements exist.public void remove()
remove in interface java.util.Iterator<ElementType>java.lang.UnsupportedOperationException - every time.Copyright (c) 2001-2020 by Stephen Ostermiller