|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.molae.pipe.basic.EnumerationIterator<E>
public class EnumerationIterator<E>
Adapter to make Enumeration
instances appear
to be Iterator
instances.
Constructor Summary | |
---|---|
EnumerationIterator(Enumeration<E> base)
|
Method Summary | |
---|---|
boolean |
hasNext()
Returns true if the base enumeration has more elements. |
E |
next()
Returns the next object from the base enumeration. |
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 |
Constructor Detail |
---|
public EnumerationIterator(Enumeration<E> base)
Method Detail |
---|
public boolean hasNext()
true
if the base enumeration has more elements.
hasNext
in interface Iterator<E>
true
if the base enumeration has more elementspublic E next()
next
in interface Iterator<E>
public void remove()
remove
in interface Iterator<E>
UnsupportedOperationException
- always
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |