public static <T> ArrayList<T> list (Enumeration<T> e)

Returns an array list containing the elements returned by the specified enumeration in the order they are returned by the enumeration. This method provides interoperability between legacy APIs that return enumerations and new APIs that require collections.

Parameters:
<T>    the class of the objects returned by the enumeration
e    enumeration providing elements for the returned array list

Returns:  an array list containing the elements returned by the specified enumeration.

See also:
Enumeration, ArrayList

Since:  1.4