129 |
* @return true if the add operation caused the Collection to change |
* @return true if the add operation caused the Collection to change |
130 |
* @throws UnsupportedOperationException if the add operation is not |
* @throws UnsupportedOperationException if the add operation is not |
131 |
* supported on this collection |
* supported on this collection |
132 |
* @throws NullPointerException if this collection does not support null, |
* @throws NullPointerException if the specified collection is null |
133 |
* or if the specified collection is null |
* @throws ClassCastException if the type of any element in c is |
134 |
* @throws ClassCastException if an object in c is of the wrong type |
* not a valid type for addition. |
135 |
* @throws IllegalArgumentException if some aspect of an object in c prevents |
* @throws IllegalArgumentException if some aspect of any element |
136 |
* it from being added |
* in c prevents it being added. |
137 |
|
* @throws NullPointerException if any element in c is null and this |
138 |
|
* collection doesn't allow null values. |
139 |
* @see #add(Object) |
* @see #add(Object) |
140 |
*/ |
*/ |
141 |
public boolean addAll(Collection c) |
public boolean addAll(Collection c) |
270 |
* @return true if the remove operation caused the Collection to change |
* @return true if the remove operation caused the Collection to change |
271 |
* @throws UnsupportedOperationException if this collection's Iterator |
* @throws UnsupportedOperationException if this collection's Iterator |
272 |
* does not support the remove method |
* does not support the remove method |
273 |
|
* @throws NullPointerException if the collection, c, is null. |
274 |
* @see Iterator#remove() |
* @see Iterator#remove() |
275 |
*/ |
*/ |
276 |
public boolean removeAll(Collection c) |
public boolean removeAll(Collection c) |
291 |
* @return true if the remove operation caused the Collection to change |
* @return true if the remove operation caused the Collection to change |
292 |
* @throws UnsupportedOperationException if this collection's Iterator |
* @throws UnsupportedOperationException if this collection's Iterator |
293 |
* does not support the remove method |
* does not support the remove method |
294 |
|
* @throws NullPointerException if the collection, c, is null. |
295 |
* @see Iterator#remove() |
* @see Iterator#remove() |
296 |
*/ |
*/ |
297 |
|
// Package visible for use throughout java.util. |
298 |
boolean removeAllInternal(Collection c) |
boolean removeAllInternal(Collection c) |
299 |
{ |
{ |
300 |
Iterator itr = iterator(); |
Iterator itr = iterator(); |
321 |
* @return true if the remove operation caused the Collection to change |
* @return true if the remove operation caused the Collection to change |
322 |
* @throws UnsupportedOperationException if this collection's Iterator |
* @throws UnsupportedOperationException if this collection's Iterator |
323 |
* does not support the remove method |
* does not support the remove method |
324 |
|
* @throws NullPointerException if the collection, c, is null. |
325 |
* @see Iterator#remove() |
* @see Iterator#remove() |
326 |
*/ |
*/ |
327 |
public boolean retainAll(Collection c) |
public boolean retainAll(Collection c) |
343 |
* @return true if the remove operation caused the Collection to change |
* @return true if the remove operation caused the Collection to change |
344 |
* @throws UnsupportedOperationException if this collection's Iterator |
* @throws UnsupportedOperationException if this collection's Iterator |
345 |
* does not support the remove method |
* does not support the remove method |
346 |
|
* @throws NullPointerException if the collection, c, is null. |
347 |
* @see Iterator#remove() |
* @see Iterator#remove() |
348 |
*/ |
*/ |
349 |
|
// Package visible for use throughout java.util. |
350 |
boolean retainAllInternal(Collection c) |
boolean retainAllInternal(Collection c) |
351 |
{ |
{ |
352 |
Iterator itr = iterator(); |
Iterator itr = iterator(); |