org.apache.velocity.util
Class EnumerationIterator
java.lang.Objectorg.apache.velocity.util.EnumerationIterator
- Iterator
public class EnumerationIterator
extends java.lang.Object
implements Iterator
An Iterator wrapper for an Enumeration.
$Id: EnumerationIterator.java,v 1.1.14.1 2004/03/03 23:23:07 geirm Exp $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.