T
- the type of object this iterator returnsjava.util.Iterator<T>
public class EnumerationIterator<T> extends java.lang.Object implements java.util.Iterator<T>
Constructor | Description |
---|---|
EnumerationIterator(java.util.Enumeration<T> enumer) |
Creates a new iteratorwrapper instance for the specified
Enumeration.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
hasNext() |
Check to see if there is another element in the array.
|
T |
next() |
Move to next element in the array.
|
void |
remove() |
Unimplemented.
|
public EnumerationIterator(java.util.Enumeration<T> enumer)
enumer
- The Enumeration to wrap.public T next()
next
in interface java.util.Iterator<T>
public boolean hasNext()
hasNext
in interface java.util.Iterator<T>