|
JAPI 0_6-alpha-2 Yet another Java API API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.japi.util.EnumerationIterator<T>
public class EnumerationIterator<T>
Combined Iterator/Iterable proxy for enumerations. Instances are not reusable.
| Constructor Summary | |
|---|---|
EnumerationIterator(Enumeration<T> enumeration)
Create an Iterable based on an Enumeration, useful for foreach-loops. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
Iterator<T> |
iterator()
|
T |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnumerationIterator(Enumeration<T> enumeration)
enumeration - Enumeration to iterate over| Method Detail |
|---|
public Iterator<T> iterator()
iterator in interface Iterable<T>public boolean hasNext()
hasNext in interface Iterator<T>
public T next()
throws NoSuchElementException
next in interface Iterator<T>NoSuchElementExceptionpublic void remove()
remove in interface Iterator<T>
|
JAPI Yet another Java API API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||