Lines Matching defs:to

8  * particular file as subject to the "Classpath" exception as provided
18 * 2 along with this work; if not, write to the Free Software Foundation,
36 * class should be good enough to allow its use as a high-quality, typesafe
37 * alternative to traditional <tt>int</tt>-based "bit flags." Even bulk
45 * and it may or may not show the effects of any modifications to the set that
48 * <p>Null elements are not permitted. Attempts to insert a null element
49 * will throw {@link NullPointerException}. Attempts to test for the
50 * presence of a null element or to remove one will, however, function
59 * method. This is best done at creation time, to prevent accidental
67 * They are likely (though not guaranteed) to be much faster than their
133 * Adds all of the elements from the appropriate enum type to this enum
134 * set, which is empty prior to the call.
142 * @param s the enum set from which to initialize this enum set
152 * factory method behaves identically to {@link #copyOf(EnumSet)}.
154 * (in order to determine the new enum set's element type).
156 * @param c the collection from which to initialize this enum set
181 * @param s the enum set from whose complement to initialize this enum set
193 * Overloadings of this method exist to initialize an enum set with
195 * uses the varargs feature. This overloading may be used to create
197 * is likely to run slower than the overloadings that do not use varargs.
199 * @param e the element that this set is to contain initially
212 * Overloadings of this method exist to initialize an enum set with
214 * uses the varargs feature. This overloading may be used to create
216 * is likely to run slower than the overloadings that do not use varargs.
218 * @param e1 an element that this set is to contain initially
219 * @param e2 another element that this set is to contain initially
233 * Overloadings of this method exist to initialize an enum set with
235 * uses the varargs feature. This overloading may be used to create
237 * is likely to run slower than the overloadings that do not use varargs.
239 * @param e1 an element that this set is to contain initially
240 * @param e2 another element that this set is to contain initially
241 * @param e3 another element that this set is to contain initially
256 * Overloadings of this method exist to initialize an enum set with
258 * uses the varargs feature. This overloading may be used to create
260 * is likely to run slower than the overloadings that do not use varargs.
262 * @param e1 an element that this set is to contain initially
263 * @param e2 another element that this set is to contain initially
264 * @param e3 another element that this set is to contain initially
265 * @param e4 another element that this set is to contain initially
281 * Overloadings of this method exist to initialize an enum set with
283 * uses the varargs feature. This overloading may be used to create
285 * is likely to run slower than the overloadings that do not use varargs.
287 * @param e1 an element that this set is to contain initially
288 * @param e2 another element that this set is to contain initially
289 * @param e3 another element that this set is to contain initially
290 * @param e4 another element that this set is to contain initially
291 * @param e5 another element that this set is to contain initially
310 * be used to create an enum set initially containing an arbitrary
311 * number of elements, but it is likely to run slower than the overloadings
314 * @param first an element that the set is to contain initially
315 * @param rest the remaining elements the set is to contain initially
336 * @param to the last element in the range
337 * @throws NullPointerException if {@code from} or {@code to} are null
338 * @throws IllegalArgumentException if {@code from.compareTo(to) > 0}
342 public static <E extends Enum<E>> EnumSet<E> range(E from, E to) {
343 if (from.compareTo(to) > 0)
344 throw new IllegalArgumentException(from + " > " + to);
346 result.addRange(from, to);
351 * Adds the specified range to this enum set, which is empty prior
352 * to the call.
354 abstract void addRange(E from, E to);
393 * This class is used to serialize all EnumSet instances, regardless of
396 * to ensure that the existence of a particular implementation type is