|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.Ostermiller.util.EnumerationIterator<ElementType>
ElementType - type of object over which to iteratepublic class EnumerationIterator<ElementType>
Converts an Enumeration to an iterator.
More information about this class is available from ostermiller.org.
| Constructor Summary | |
|---|---|
EnumerationIterator(java.util.Enumeration<ElementType> enumeration)
Create an Iterator from an Enumeration. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnumerationIterator(java.util.Enumeration<ElementType> enumeration)
enumeration - Enumeration to convert to an Iterator.| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||