com.webmethods.caf.common
Class ListTools.EnumerationIterator

java.lang.Object
  extended by com.webmethods.caf.common.ListTools.EnumerationIterator
All Implemented Interfaces:
Iterator
Enclosing class:
ListTools

public static class ListTools.EnumerationIterator
extends Object
implements Iterator

Inner class that iterates through enumerations.


Field Summary
protected  Enumeration e
           
 
Constructor Summary
ListTools.EnumerationIterator(Enumeration e)
          Constructor with the enumeration to wrap as an iterator.
 
Method Summary
 boolean hasNext()
          Returns true if the enumeration hasMoreElements().
 Object next()
          Returns the enumeration nextElement().
 void remove()
          Always throws a java.lang.UnsupportedOperationException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

e

protected Enumeration e
Constructor Detail

ListTools.EnumerationIterator

public ListTools.EnumerationIterator(Enumeration e)
Constructor with the enumeration to wrap as an iterator.

Method Detail

hasNext

public boolean hasNext()
Returns true if the enumeration hasMoreElements().

Specified by:
hasNext in interface Iterator

next

public Object next()
Returns the enumeration nextElement().

Specified by:
next in interface Iterator

remove

public void remove()
Always throws a java.lang.UnsupportedOperationException.

Specified by:
remove in interface Iterator