|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.intarsys.tools.collection.EnumerationIterator<T>
public class EnumerationIterator<T>
Wraps an enumeration into an Iterator API.
| Constructor Summary | |
|---|---|
EnumerationIterator(Enumeration e)
Create an Iterator over an enumeration. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Return true if underlying enumeration still has elements. |
T |
next()
Return the next element from the underlying enumeration. |
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnumerationIterator(Enumeration e)
e - The enumeration to be iterated.| Method Detail |
|---|
public boolean hasNext()
true if underlying enumeration still has elements.
hasNext in interface Iterator<T>true if underlying enumeration still has elements.public T next()
next in interface Iterator<T>NoSuchElementExceptionpublic void remove()
remove in interface Iterator<T>
|
intarsys runtime library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||