public static < E extends Enum < E > > EnumSet < E > allOf ( Class < E > elementType ) { EnumSet < E > result = noneOf ( elementType ) ; result . addAll ( ) ; return result ; }
Creates an enum set containing all of the elements in the specified element type .