org.melati.poem.util
Class ArrayEnumeration<T>

Package class diagram package ArrayEnumeration
java.lang.Object
  extended by org.melati.poem.util.ArrayEnumeration<T>
All Implemented Interfaces:
Enumeration<T>

public class ArrayEnumeration<T>
extends Object
implements Enumeration<T>

An Enumeration created from an Array.


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

Constructor Detail

ArrayEnumeration

public ArrayEnumeration(T[] a)
Constructor.

Parameters:
a - the Array to enumerate
Method Detail

hasMoreElements

public boolean hasMoreElements()

Specified by:
hasMoreElements in interface Enumeration<T>
See Also:
Enumeration.hasMoreElements()

nextElement

public T nextElement()

Specified by:
nextElement in interface Enumeration<T>
See Also:
Enumeration.nextElement()


Copyright © 2000-2010 PanEris. All Rights Reserved.