public static < E extends Enum < E > > EnumSet < E > noneOf ( Class < E > elementType ) { Enum < ? > [ ] universe = getUniverse ( elementType ) ; if ( universe == null ) throw new ClassCastException ( elementType + " not an enum" ) ; if ( universe . length <= 64 ) return new RegularEnumSet <> ( elementType , universe ) ; else return new JumboEnumSet <> ( elementType , universe ) ; }
Creates an empty enum set with the specified element type .