58 |
|
* }}</pre> |
59 |
|
* |
60 |
|
* <p>This class is a member of the |
61 |
< |
* <a href="{@docRoot}/java/util/package-summary.html#CollectionsFramework"> |
61 |
> |
* <a href="{@docRoot}/java.base/java/util/package-summary.html#CollectionsFramework"> |
62 |
|
* Java Collections Framework</a>. |
63 |
|
* |
64 |
|
* @see CopyOnWriteArrayList |
311 |
|
* @return {@code true} if this set changed as a result of the call |
312 |
|
* @throws ClassCastException if the class of an element of this set |
313 |
|
* is incompatible with the specified collection |
314 |
< |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>) |
314 |
> |
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>) |
315 |
|
* @throws NullPointerException if this set contains a null element and the |
316 |
|
* specified collection does not permit null elements |
317 |
< |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>), |
317 |
> |
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>), |
318 |
|
* or if the specified collection is null |
319 |
|
* @see #remove(Object) |
320 |
|
*/ |
334 |
|
* @return {@code true} if this set changed as a result of the call |
335 |
|
* @throws ClassCastException if the class of an element of this set |
336 |
|
* is incompatible with the specified collection |
337 |
< |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>) |
337 |
> |
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>) |
338 |
|
* @throws NullPointerException if this set contains a null element and the |
339 |
|
* specified collection does not permit null elements |
340 |
< |
* (<a href="{@docRoot}/../api/java/util/Collection.html#optional-restrictions">optional</a>), |
340 |
> |
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>), |
341 |
|
* or if the specified collection is null |
342 |
|
* @see #remove(Object) |
343 |
|
*/ |