The following example shows how to create an enum set containing
all of the elements in the range defined by the two specified elements.
The range specified is inclusive of elements.
EnumSet provides the following APIs,
public static <E extends Enum<E>> EnumSet<E> range(E paramE1, E paramE2)
- Returns enum set containing all of the elements in the range
defined by the two specified elements.