public static <E extends Enum<E>>EnumSet<E> of(E e1,E e2,E e3,E e4){
  EnumSet<E> set=of(e1,e2,e3);
  set.add(e4);
  return set;
}

public static < E extends Enum < E > > EnumSet < E > of ( E e1 , E e2 , E e3 , E e4 ) { EnumSet < E > set = of ( e1 , e2 , e3 ) ; set . add ( e4 ) ; return set ; }
creates a new enum set , containing only the specified elements . there are six overloadings of the method . they accept from one to five elements respectively . the sixth one receives an arbitrary number of elements , and runs slower than those that only receive a fixed number of elements .
