|
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
public class EnumerationIterator
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. |
Object |
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
true
if underlying enumeration still has elements.public Object next()
next
in interface Iterator
NoSuchElementException
public void remove()
remove
in interface Iterator
|
intarsys runtime library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |