|
com.Ostermiller.util Java Utilities |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.Ostermiller.util.IteratorEnumeration<ElementType>
ElementType - Type of element being enumeratedpublic class IteratorEnumeration<ElementType>
Converts an iterator to an enumerator.
More information about this class is available from ostermiller.org.
| Constructor Summary | |
|---|---|
IteratorEnumeration(Iterator<ElementType> iterator)
Create an Enumeration from an Iterator. |
|
| Method Summary | |
|---|---|
boolean |
hasMoreElements()
Tests if this enumeration contains more elements. |
ElementType |
nextElement()
Returns the next element of this enumeration if this enumeration object has at least one more element to provide. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IteratorEnumeration(Iterator<ElementType> iterator)
iterator - Iterator to convert to an enumeration.| Method Detail |
|---|
public boolean hasMoreElements()
hasMoreElements in interface Enumeration<ElementType>
public ElementType nextElement()
throws NoSuchElementException
nextElement in interface Enumeration<ElementType>NoSuchElementException - if no more elements exist.
|
com.Ostermiller.util Java Utilities |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Copyright (c) 2001-2007 by Stephen Ostermiller