org.apache.commons.collections
Class EnumerationUtils
public class EnumerationUtils
Provides utility methods for Enumeration
instances.
Version:
- Gary Gregory
- Commons Collections 3.0
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-2005 Apache Software Foundation. All Rights Reserved.