org.apache.commons.collections
Class EnumerationUtils
java.lang.Objectorg.apache.commons.collections.EnumerationUtils
public class EnumerationUtils
extends java.lang.Object
Provides utility methods for Enumeration instances.
$Id: EnumerationUtils.java,v 1.5 2004/02/18 01:15:42 scolebourne Exp $
static List | toList(Enumeration enumeration)- Creates a list based on an enumeration.
|
EnumerationUtils
public EnumerationUtils()
EnumerationUtils is not normally instantiated.
toList
public static List toList(Enumeration enumeration)
Creates a list based on an enumeration.
As the enumeration is traversed, an ArrayList of its values is
created. The new list is returned.
enumeration - the enumeration to traverse, which should not be null.
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.