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="Collection.html#optional-restrictions">optional</a>) |
314 |
> |
* (<a href="../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="Collection.html#optional-restrictions">optional</a>), |
317 |
> |
* (<a href="../Collection.html#optional-restrictions">optional</a>), |
318 |
|
* or if the specified collection is null |
319 |
|
* @see #remove(Object) |
320 |
|
*/ |
332 |
|
* |
333 |
|
* @param c collection containing elements to be retained in this set |
334 |
|
* @return {@code true} if this set changed as a result of the call |
335 |
< |
* @throws ClassCastException if the types of one or more elements |
336 |
< |
* in this set are incompatible with the specified collection |
337 |
< |
* (<a href="#optional-restrictions">optional</a>) |
338 |
< |
* @throws NullPointerException if this set contains one or more |
339 |
< |
* null elements and the specified collection does not permit null |
340 |
< |
* elements |
341 |
< |
* (<a href="#optional-restrictions">optional</a>), |
335 |
> |
* @throws ClassCastException if the class of an element of this set |
336 |
> |
* is incompatible with the specified collection |
337 |
> |
* (<a href="../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="../Collection.html#optional-restrictions">optional</a>), |
341 |
|
* or if the specified collection is null |
342 |
|
* @see #remove(Object) |
343 |
|
*/ |