org.jfree.report.util
Class ArrayEnumeration

java.lang.Object
  |
  +--org.jfree.report.util.ArrayEnumeration

public class ArrayEnumeration
extends java.lang.Object
implements java.util.Enumeration

An enumeration that iterates over an array.

Author:
Thomas Morgner

Constructor Summary
ArrayEnumeration(java.lang.Object[] objectarray)
          Creates a new enumeration for the given array.
 
Method Summary
 boolean hasMoreElements()
          Returns true if this enumeration has at least one more Element.
 java.lang.Object nextElement()
          Returns the next element in the Array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayEnumeration

public ArrayEnumeration(java.lang.Object[] objectarray)
Creates a new enumeration for the given array.
Parameters:
objectarray - the array over which to iterate
Throws:
java.lang.NullPointerException - if the array is null.
Method Detail

hasMoreElements

public boolean hasMoreElements()
Returns true if this enumeration has at least one more Element.
Specified by:
hasMoreElements in interface java.util.Enumeration
Returns:
true, if there are more elements, false otherwise.

nextElement

public java.lang.Object nextElement()
Returns the next element in the Array.
Specified by:
nextElement in interface java.util.Enumeration
Returns:
the next element in the array.
Throws:
java.util.NoSuchElementException - if no more elements exist.