public class

EnumerationUtils

extends Object
java.lang.Object
   ↳ org.apache.commons.collections.EnumerationUtils

Class Overview

Provides utility methods for Enumeration instances.

Summary

Public Constructors
EnumerationUtils()
EnumerationUtils is not normally instantiated.
Public Methods
static List toList(Enumeration enumeration)
Creates a list based on an enumeration.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public EnumerationUtils ()

EnumerationUtils is not normally instantiated.

Public Methods

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
NullPointerException if the enumeration parameter is null.