The following example shows how to create an enum set containing the specified element(s).
EnumSet provides the following APIs,
public static <E extends Enum<E>> EnumSet<E> of(E paramE1)
public static <E extends Enum<E>> EnumSet<E> of(E paramE1, E paramE2)
public static <E extends Enum<E>> EnumSet<E> of(E paramE1, E paramE2, E paramE3)
- Returns enum set containing the specified element(s).