Class EnumerationUtils

  • All Implemented Interfaces:
    Utils

    public abstract class EnumerationUtils
    extends java.lang.Object
    implements Utils
    The utilities class for Java Enumeration
    Since:
    1.0.0
    Author:
    Mercy
    See Also:
    Enumeration, Collections.enumeration(java.util.Collection<T>)
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <E> java.util.Enumeration<E> of​(E... elements)
      Create a Enumeration instance from the specified elements
      static <E> java.util.Enumeration<E> ofEnums​(E... elements)
      Create a Enumeration instance from the specified elements
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • of

        public static <E> java.util.Enumeration<E> of​(E... elements)
        Create a Enumeration instance from the specified elements
        Type Parameters:
        E - the type of element
        Parameters:
        elements - the specified elements
        Returns:
        non-null
      • ofEnums

        public static <E> java.util.Enumeration<E> ofEnums​(E... elements)
        Create a Enumeration instance from the specified elements
        Type Parameters:
        E - the type of element
        Parameters:
        elements - the specified elements
        Returns:
        non-null