public static < E extends Enum < E > > EnumSet < E > of ( E e ) { EnumSet < E > result = noneOf ( e . getDeclaringClass ( ) ) ; result . add ( e ) ; return result ; }
Creates an enum set initially containing the specified element .