Companion
Functions
Creates an enum set initialized from the specified collection. If the specified collection is an EnumSet instance, this static factory method behaves identically to .copyOf. Otherwise, the specified collection must contain at least one element (in order to determine the new enum set's element type).
Creates an enum set with the same element type as the specified enum set, initially containing the same elements (if any).
Creates an enum set initially containing the specified element.
Creates an enum set initially containing the specified elements.
Creates an enum set initially containing the specified elements. This factory, whose parameter list uses the varargs feature, may be used to create an enum set initially containing an arbitrary number of elements, but it is likely to run slower than the overloadings that do not use varargs.