com.inxar.jenesis.util
Class ArrayIterator

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

public class ArrayIterator
extends java.lang.Object
implements Iterator

Implementation of Iterator which wraps an array.


Constructor Summary
ArrayIterator(java.lang.Object[] a)
           
 
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

ArrayIterator

public ArrayIterator(java.lang.Object[] a)
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