⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
org.apache.commons.collections

Class EnumerationUtils

java.lang.Object
|
+--org.apache.commons.collections.EnumerationUtils


public class EnumerationUtils
extends java.lang.Object

Provides utility methods for Enumeration instances.
Since:
Commons Collections 3.0
Author:

Constructor Summary

EnumerationUtils()

EnumerationUtils is not normally instantiated.

Method Summary

static List

toList(Enumeration enumeration)

Creates a list based on an enumeration.

Constructor Details

EnumerationUtils

public EnumerationUtils()

EnumerationUtils is not normally instantiated.

Method Details

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.

Parameters:
enumeration - the enumeration to traverse, which should not be null.
Throws:
- if the enumeration parameter is null.