Lines Matching defs:of

6  * the License.  You may obtain a copy of the License at
34 * Creates an empty enum set. The permitted elements are of type
39 * @return an empty enum set, with permitted elements of type {@code
56 * Creates an enum set filled with all the enum elements of the specified
72 * Creates an enum set. All the contained elements are of type
141 * six overloadings of the method. They accept from one to five elements
142 * respectively. The sixth one receives an arbitrary number of elements, and
143 * runs slower than those that only receive a fixed number of elements.
151 public static <E extends Enum<E>> EnumSet<E> of(E e) {
159 * six overloadings of the method. They accept from one to five elements
160 * respectively. The sixth one receives an arbitrary number of elements, and
161 * runs slower than those that only receive a fixed number of elements.
169 * if any of the specified elements is {@code null}.
171 public static <E extends Enum<E>> EnumSet<E> of(E e1, E e2) {
172 EnumSet<E> set = of(e1);
179 * six overloadings of the method. They accept from one to five elements
180 * respectively. The sixth one receives an arbitrary number of elements, and
181 * runs slower than those that only receive a fixed number of elements.
191 * if any of the specified elements is {@code null}.
193 public static <E extends Enum<E>> EnumSet<E> of(E e1, E e2, E e3) {
194 EnumSet<E> set = of(e1, e2);
201 * six overloadings of the method. They accept from one to five elements
202 * respectively. The sixth one receives an arbitrary number of elements, and
203 * runs slower than those that only receive a fixed number of elements.
215 * if any of the specified elements is {@code null}.
217 public static <E extends Enum<E>> EnumSet<E> of(E e1, E e2, E e3, E e4) {
218 EnumSet<E> set = of(e1, e2, e3);
225 * six overloadings of the method. They accept from one to five elements
226 * respectively. The sixth one receives an arbitrary number of elements, and
227 * runs slower than those that only receive a fixed number of elements.
241 * if any of the specified elements is {@code null}.
243 public static <E extends Enum<E>> EnumSet<E> of(E e1, E e2, E e3, E e4, E e5) {
244 EnumSet<E> set = of(e1, e2, e3, e4);
251 * receive an arbitrary number of elements, and runs slower than those only
252 * receiving a fixed number of elements.
260 * if any of the specified elements is {@code null}.
263 public static <E extends Enum<E>> EnumSet<E> of(E start, E... others) {
264 EnumSet<E> set = of(start);
277 * the element used to define the beginning of the range.
279 * the element used to define the end of the range.
282 * if any one of {@code start} or {@code end} is {@code null}.