|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonathan.libs.helpers.IteratorAdapter
Implements a bridge between an Enumeration
and an
Iterator
.
Constructor Summary | |
IteratorAdapter(java.util.Enumeration _e)
Creates a new IteratorAdapter, using the provided enumeration. |
Method Summary | |
boolean |
hasNext()
Returns the result of calling hasMoreElements() on the encapsulated enumeration. |
java.lang.Object |
next()
Returns the result of calling nextElement() on the encapsulated enumeration. |
void |
remove()
Can't be implemented: throws an InternalException . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IteratorAdapter(java.util.Enumeration _e)
_e
- an enumeration.Method Detail |
public boolean hasNext()
hasMoreElements()
on the encapsulated enumeration.
hasNext
in interface java.util.Iterator
public java.lang.Object next()
nextElement()
on the encapsulated enumeration.
next
in interface java.util.Iterator
public void remove()
InternalException
.
remove
in interface java.util.Iterator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |