jodd.util.collection
Class ArrayEnumeration<E>

java.lang.Object
  extended by jodd.util.collection.ArrayEnumeration<E>
All Implemented Interfaces:
java.io.Serializable, java.util.Enumeration<E>

public class ArrayEnumeration<E>
extends java.lang.Object
implements java.util.Enumeration<E>, java.io.Serializable

Enumeration over an array.

See Also:
Serialized Form

Constructor Summary
ArrayEnumeration(E[] arr)
           
ArrayEnumeration(E[] arr, int offset, int length)
           
 
Method Summary
 boolean hasMoreElements()
           
 E nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayEnumeration

public ArrayEnumeration(E[] arr)

ArrayEnumeration

public ArrayEnumeration(E[] arr,
                        int offset,
                        int length)
Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface java.util.Enumeration<E>

nextElement

public E nextElement()
              throws java.util.NoSuchElementException
Specified by:
nextElement in interface java.util.Enumeration<E>
Throws:
java.util.NoSuchElementException


Copyright © 2003-2012 Jodd Team