|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.util.Enumerator
public class Enumerator
This class wraps an enumeration around an iterator.
Field Summary | |
---|---|
static String |
REVISION
|
Constructor Summary | |
---|---|
Enumerator(Enumeration enu)
Creates an iterator wraps around the given enumeration |
Method Summary | |
---|---|
boolean |
hasNext()
Checks whether there are more elements to be processed. |
Object |
next()
Returns the next element in the iteration. |
void |
remove()
Removes from the underlying collection the last element returned by the iterator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
Constructor Detail |
---|
public Enumerator(Enumeration enu)
enu
- enumeration on the data.Method Detail |
---|
public final boolean hasNext()
hasNext
in interface Iterator
Enumeration.hasMoreElements()
public final Object next()
next
in interface Iterator
Enumeration.nextElement()
public final void remove() throws UnsupportedOperationException
remove
in interface Iterator
UnsupportedOperationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |