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 155406 2005-02-26 12:55:26Z dirkv $
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-2015 Apache Software Foundation. All Rights Reserved.