Package org.apache.commons.collections
Class EnumerationUtils
- java.lang.Object
 - 
- org.apache.commons.collections.EnumerationUtils
 
 
- 
public class EnumerationUtils extends java.lang.ObjectProvides utility methods forEnumerationinstances.- Since:
 - Commons Collections 3.0
 
 
- 
- 
Constructor Summary
Constructors Constructor Description EnumerationUtils()EnumerationUtils is not normally instantiated. 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.ListtoList(java.util.Enumeration enumeration)Creates a list based on an enumeration. 
 - 
 
- 
- 
Method Detail
- 
toList
public static java.util.List toList(java.util.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 benull.- Throws:
 java.lang.NullPointerException- if the enumeration parameter isnull.
 
 - 
 
 -