|
|||||||||
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(java.util.Enumeration e)
Create an Iterator over an enumeration. |
Method Summary | |
---|---|
protected java.util.Enumeration |
getEnumeration()
|
boolean |
hasNext()
Return true if underlying enumeration still has elements. |
java.lang.Object |
next()
Return the next element from the underlying enumeration. |
void |
remove()
|
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 e)
e
- The enumeration to be iterated.Method Detail |
---|
protected java.util.Enumeration getEnumeration()
public boolean hasNext()
true
if underlying enumeration still has elements.
hasNext
in interface java.util.Iterator
true
if underlying enumeration still has elements.public java.lang.Object next()
next
in interface java.util.Iterator
java.util.NoSuchElementException
public void remove()
remove
in interface java.util.Iterator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |