equal
deleted
inserted
replaced
83 * this class does not permit the use of {@code null} elements, |
83 * this class does not permit the use of {@code null} elements, |
84 * because {@code null} arguments and return values cannot be reliably |
84 * because {@code null} arguments and return values cannot be reliably |
85 * distinguished from the absence of elements. |
85 * distinguished from the absence of elements. |
86 * |
86 * |
87 * <p>This class is a member of the |
87 * <p>This class is a member of the |
88 * <a href="{@docRoot}/java/util/package-summary.html#CollectionsFramework"> |
88 * <a href="{@docRoot}/java.base/java/util/package-summary.html#CollectionsFramework"> |
89 * Java Collections Framework</a>. |
89 * Java Collections Framework</a>. |
90 * |
90 * |
91 * @author Doug Lea |
91 * @author Doug Lea |
92 * @param <E> the type of elements maintained by this set |
92 * @param <E> the type of elements maintained by this set |
93 * @since 1.6 |
93 * @since 1.6 |
322 * |
322 * |
323 * @param c collection containing elements to be removed from this set |
323 * @param c collection containing elements to be removed from this set |
324 * @return {@code true} if this set changed as a result of the call |
324 * @return {@code true} if this set changed as a result of the call |
325 * @throws ClassCastException if the class of an element of this set |
325 * @throws ClassCastException if the class of an element of this set |
326 * is incompatible with the specified collection |
326 * is incompatible with the specified collection |
327 * (<a href="{@docRoot}/java/util/Collection.html#optional-restrictions">optional</a>) |
327 * (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>) |
328 * @throws NullPointerException if the specified collection or any |
328 * @throws NullPointerException if the specified collection or any |
329 * of its elements are null |
329 * of its elements are null |
330 */ |
330 */ |
331 public boolean removeAll(Collection<?> c) { |
331 public boolean removeAll(Collection<?> c) { |
332 // Override AbstractSet version to avoid unnecessary call to size() |
332 // Override AbstractSet version to avoid unnecessary call to size() |