of
Creates an enum set initially containing the specified element.
Overloadings of this method exist to initialize an enum set with one through five elements. A sixth overloading is provided that uses the varargs feature. This overloading may be used to create an enum set initially containing an arbitrary number of elements, but is likely to run slower than the overloadings that do not use varargs.
Return
an enum set initially containing the specified element
Parameters
the element that this set is to contain initially
Throws
if e is null
Creates an enum set initially containing the specified elements.
Overloadings of this method exist to initialize an enum set with one through five elements. A sixth overloading is provided that uses the varargs feature. This overloading may be used to create an enum set initially containing an arbitrary number of elements, but is likely to run slower than the overloadings that do not use varargs.
Return
an enum set initially containing the specified elements
Parameters
an element that this set is to contain initially
another element that this set is to contain initially
Throws
if any parameters are null
Creates an enum set initially containing the specified elements.
Overloadings of this method exist to initialize an enum set with one through five elements. A sixth overloading is provided that uses the varargs feature. This overloading may be used to create an enum set initially containing an arbitrary number of elements, but is likely to run slower than the overloadings that do not use varargs.
Return
an enum set initially containing the specified elements
Parameters
an element that this set is to contain initially
another element that this set is to contain initially
another element that this set is to contain initially
Throws
if any parameters are null
Creates an enum set initially containing the specified elements.
Overloadings of this method exist to initialize an enum set with one through five elements. A sixth overloading is provided that uses the varargs feature. This overloading may be used to create an enum set initially containing an arbitrary number of elements, but is likely to run slower than the overloadings that do not use varargs.
Return
an enum set initially containing the specified elements
Parameters
an element that this set is to contain initially
another element that this set is to contain initially
another element that this set is to contain initially
another element that this set is to contain initially
Throws
if any parameters are null
Creates an enum set initially containing the specified elements.
Overloadings of this method exist to initialize an enum set with one through five elements. A sixth overloading is provided that uses the varargs feature. This overloading may be used to create an enum set initially containing an arbitrary number of elements, but is likely to run slower than the overloadings that do not use varargs.
Return
an enum set initially containing the specified elements
Parameters
an element that this set is to contain initially
another element that this set is to contain initially
another element that this set is to contain initially
another element that this set is to contain initially
another element that this set is to contain initially
Throws
if any parameters are null
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.
Return
an enum set initially containing the specified elements
Parameters
an element that the set is to contain initially
the remaining elements the set is to contain initially
Throws
if any of the specified elements are null, or if rest is null