|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.umd.cfar.lamp.viper.util.EnumIterator
An Iterator wrapper for a java Enumeration.
Constructor Summary | |
EnumIterator(java.util.Enumeration enum)
Constructs a new Iterator wrapping the given enumeration. |
Method Summary | |
boolean |
hasNext()
Tests to see if more elements remain. |
java.lang.Object |
next()
Gets the next element of the enumeration. |
void |
remove()
Enumerations do not support removal. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EnumIterator(java.util.Enumeration enum)
enum
- the enumeration to wrapMethod Detail |
public void remove()
remove
in interface java.util.Iterator
java.lang.UnsupportedOperationException
public boolean hasNext()
hasNext
in interface java.util.Iterator
enum.hasMoreElements()
public java.lang.Object next()
next
in interface java.util.Iterator
enum.nextElement()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |