com.inxar.jenesis.util
Class EnumerationIterator

java.lang.Object
  |
  +--com.inxar.jenesis.util.EnumerationIterator
All Implemented Interfaces:
Iterator

public class EnumerationIterator
extends java.lang.Object
implements Iterator

Implementation of Iterator which wraps an Enumeration.


Constructor Summary
EnumerationIterator(java.util.Enumeration e, int size)
           
 
Method Summary
 boolean hasNext()
          Returns true if there is at least one more element in the list.
 java.lang.Object next()
          Returns the next object in the list and advances the cursor.
 int size()
          Returns the length (size) of the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumerationIterator

public EnumerationIterator(java.util.Enumeration e,
                           int size)
Method Detail

hasNext

public boolean hasNext()
Description copied from interface: Iterator
Returns true if there is at least one more element in the list.
Specified by:
hasNext in interface Iterator

next

public java.lang.Object next()
Description copied from interface: Iterator
Returns the next object in the list and advances the cursor.
Specified by:
next in interface Iterator

size

public int size()
Description copied from interface: Iterator
Returns the length (size) of the list.
Specified by:
size in interface Iterator