org.pf.util
Class EnumerationIterator

java.lang.Object
  extended by org.pf.util.EnumerationIterator
All Implemented Interfaces:
java.util.Iterator

public class EnumerationIterator
extends java.lang.Object
implements java.util.Iterator

Provides the Iterator interface on a given Enumeration.

Version:
1.0
Author:
M.Duchrow

Constructor Summary
EnumerationIterator(java.util.Enumeration enumeration)
          Initialize the new instance with an enumeration.
 
Method Summary
 boolean hasNext()
          Returns true if another element is available.
 java.lang.Object next()
          Returns the next element.
 void remove()
          Not supported but required by interface Iterator.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumerationIterator

public EnumerationIterator(java.util.Enumeration enumeration)
Initialize the new instance with an enumeration.

Method Detail

hasNext

public boolean hasNext()
Returns true if another element is available.

Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Returns the next element.

Specified by:
next in interface java.util.Iterator

remove

public void remove()
Not supported but required by interface Iterator. Empty method.

Specified by:
remove in interface java.util.Iterator