The following example shows how to create an enum set containing all of the elements
in the specified element type. EnumSet provides the following APIs,
public static <E extends Enum<E>> EnumSet<E> allOf(Class<E> paramClass);
- Returns enum set containing all of the elements in the specified element type.