com.inxar.jenesis.util
Class TypeIterator

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

public class TypeIterator
extends java.lang.Object
implements Iterator

Implementation of Iterator which screens for the given type.


Constructor Summary
TypeIterator(java.lang.Class type, 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

TypeIterator

public TypeIterator(java.lang.Class type,
                    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