| |
|
| java.lang.Object net.sourceforge.squirrel_sql.fw.util.EnumerationIterator
EnumerationIterator | public class EnumerationIterator implements Iterator<E>(Code) | | An EnumerationIterator object will allow you to treat
an Enumeration as an Iterator.
author: Colin Bell |
Method Summary | |
public boolean | hasNext() Returns true if the iteration has more elements. | public E | next() Returns the next element in the interation. | public void | remove() Unsupported operation. |
EnumerationIterator | public EnumerationIterator(Enumeration<E> en)(Code) | | Ctor.
Parameters: en - Enumeration that Iterator will be builtover. If null pretends it was an emptyEnumeration passed. |
hasNext | public boolean hasNext()(Code) | | Returns true if the iteration has more elements.
true if the Iterator has more elements. |
next | public E next()(Code) | | Returns the next element in the interation.
the next element in the iteration. NoSuchElementExceptioniteration has no more elements. |
remove | public void remove()(Code) | | Unsupported operation. Enumeration objects don't
support remove.
UnsupportedOperationExceptionThis is an unsupported operation. |
|
|
|