org.apache.velocity.util
Class EnumerationIterator
java.lang.Object
org.apache.velocity.util.EnumerationIterator
- Iterator
public class EnumerationIterator
extends java.lang.Object
implements Iterator
An Iterator wrapper for an Enumeration.
Version:
- Geir Magnusson Jr.
private Enumeration | enum - The enumeration to iterate.
|
EnumerationIterator(Enumeration enum) - Creates a new iteratorwrapper instance for the specified
Enumeration.
|
boolean | hasNext() - Check to see if there is another element in the array.
|
Object | next() - Move to next element in the array.
|
void | remove() - Unimplemented.
|
enum
private Enumeration enum
The enumeration to iterate.
EnumerationIterator
public EnumerationIterator(Enumeration enum)
Creates a new iteratorwrapper instance for the specified
Enumeration.
enum
- The Enumeration to wrap.
hasNext
public boolean hasNext()
Check to see if there is another element in the array.
- Whether there is another element.
next
public Object next()
Move to next element in the array.
- The next object in the array.
remove
public void remove()
Unimplemented. No analogy in Enumeration
Copyright B) 2002 Apache Software Foundation. All Rights Reserved.