org.sadun.util
Class ListEnumeration

java.lang.Object
  extended byorg.sadun.util.ListEnumeration
All Implemented Interfaces:
java.util.Enumeration

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

An Enumeration for a java.util.List object.

Author:
Cristiano Sadun

Constructor Summary
ListEnumeration(java.util.List list)
           
 
Method Summary
static java.util.List asList(java.util.Enumeration e)
           
 boolean hasMoreElements()
           
 java.lang.Object nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListEnumeration

public ListEnumeration(java.util.List list)
Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface java.util.Enumeration
See Also:
Enumeration.hasMoreElements()

nextElement

public java.lang.Object nextElement()
Specified by:
nextElement in interface java.util.Enumeration
See Also:
Enumeration.nextElement()

asList

public static java.util.List asList(java.util.Enumeration e)