org.apache.commons.collections
public class EnumerationUtils extends Object
Since: Commons Collections 3.0
Version: $Id: EnumerationUtils.java,v 1.5 2004/02/18 01:15:42 scolebourne Exp $
Constructor Summary | |
---|---|
EnumerationUtils()
EnumerationUtils is not normally instantiated. |
Method Summary | |
---|---|
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.
Parameters: enumeration the enumeration to traverse, which should not be null
.
Throws: NullPointerException if the enumeration parameter is null
.