Package org.apache.commons.collections
Class EnumerationUtils
java.lang.Object
org.apache.commons.collections.EnumerationUtils
Deprecated.
Apache Commons Collections version 3.x is being deprecated from AEMaaCS. The upgraded version 4.4 of Commons Collections is already included as replacement. Customers are advised to upgrade to this version of the library. Please note: the package name was changed to org.apache.commons.collections4. Further note that there are AEM APIs currently exposing the old collections classes; these will be updated in upcoming releases.
Provides utility methods for
Enumeration
instances.- Since:
- Commons Collections 3.0
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.EnumerationUtils is not normally instantiated. -
Method Summary
Modifier and TypeMethodDescriptionstatic List
toList
(Enumeration enumeration) Deprecated.Creates a list based on an enumeration.
-
Constructor Details
-
EnumerationUtils
public EnumerationUtils()Deprecated.EnumerationUtils is not normally instantiated.
-
-
Method Details
-
toList
Deprecated.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:
NullPointerException
- if the enumeration parameter isnull
.
-