Class EnumerationUtils


  • @Deprecated(since="2021-04-30")
    public class EnumerationUtils
    extends java.lang.Object
    Deprecated.
    Commons Collections 3 is in maintenance mode. Commons Collections 4 should be used instead.
    Provides utility methods for Enumeration instances.
    Since:
    Commons Collections 3.0
    • Constructor Summary

      Constructors 
      Constructor Description
      EnumerationUtils()
      Deprecated.
      EnumerationUtils is not normally instantiated.
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static java.util.List toList​(java.util.Enumeration enumeration)
      Deprecated.
      Creates a list based on an enumeration.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EnumerationUtils

        public EnumerationUtils()
        Deprecated.
        EnumerationUtils is not normally instantiated.
    • Method Detail

      • toList

        public static java.util.List toList​(java.util.Enumeration enumeration)
        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 be null.
        Throws:
        java.lang.NullPointerException - if the enumeration parameter is null.