94 |
* support the add operation. |
* support the add operation. |
95 |
* @throws ClassCastException if o cannot be added to this collection due |
* @throws ClassCastException if o cannot be added to this collection due |
96 |
* to its type. |
* to its type. |
97 |
|
* @throws NullPointerException if o is null and this collection doesn't |
98 |
|
* support the addition of null values. |
99 |
* @throws IllegalArgumentException if o cannot be added to this |
* @throws IllegalArgumentException if o cannot be added to this |
100 |
* collection for some other reason. |
* collection for some other reason. |
101 |
*/ |
*/ |
110 |
* support the addAll operation. |
* support the addAll operation. |
111 |
* @throws ClassCastException if some element of c cannot be added to this |
* @throws ClassCastException if some element of c cannot be added to this |
112 |
* collection due to its type. |
* collection due to its type. |
113 |
|
* @throws NullPointerException if some element of c is null and this |
114 |
|
* collection does not support the addition of null values. |
115 |
|
* @throws NullPointerException if c itself is null. |
116 |
* @throws IllegalArgumentException if some element of c cannot be added |
* @throws IllegalArgumentException if some element of c cannot be added |
117 |
* to this collection for some other reason. |
* to this collection for some other reason. |
118 |
*/ |
*/ |
134 |
* @param o the element to look for. |
* @param o the element to look for. |
135 |
* @return true if this collection contains at least one element e such that |
* @return true if this collection contains at least one element e such that |
136 |
* <code>o == null ? e == null : o.equals(e)</code>. |
* <code>o == null ? e == null : o.equals(e)</code>. |
137 |
|
* @throws ClassCastException if the type of o is not a valid type for this |
138 |
|
* collection. |
139 |
|
* @throws NullPointerException if o is null and this collection doesn't |
140 |
|
* support null values. |
141 |
*/ |
*/ |
142 |
boolean contains(Object o); |
boolean contains(Object o); |
143 |
|
|
146 |
* |
* |
147 |
* @param c the collection to test for. |
* @param c the collection to test for. |
148 |
* @return true if for every element o in c, contains(o) would return true. |
* @return true if for every element o in c, contains(o) would return true. |
149 |
|
* @throws ClassCastException if the type of any element in c is not a valid |
150 |
|
* type for this collection. |
151 |
|
* @throws NullPointerException if some element of c is null and this |
152 |
|
* collection does not support null values. |
153 |
|
* @throws NullPointerException if c itself is null. |
154 |
*/ |
*/ |
155 |
boolean containsAll(Collection c); |
boolean containsAll(Collection c); |
156 |
|
|
212 |
* if the collection contained at least one occurrence of o. |
* if the collection contained at least one occurrence of o. |
213 |
* @throws UnsupportedOperationException if this collection does not |
* @throws UnsupportedOperationException if this collection does not |
214 |
* support the remove operation. |
* support the remove operation. |
215 |
|
* @throws ClassCastException if the type of o is not a valid type |
216 |
|
* for this collection. |
217 |
|
* @throws NullPointerException if o is null and the collection doesn't |
218 |
|
* support null values. |
219 |
*/ |
*/ |
220 |
boolean remove(Object o); |
boolean remove(Object o); |
221 |
|
|
226 |
* @return true if this collection was modified as a result of this call. |
* @return true if this collection was modified as a result of this call. |
227 |
* @throws UnsupportedOperationException if this collection does not |
* @throws UnsupportedOperationException if this collection does not |
228 |
* support the removeAll operation. |
* support the removeAll operation. |
229 |
|
* @throws ClassCastException if the type of any element in c is not a valid |
230 |
|
* type for this collection. |
231 |
|
* @throws NullPointerException if some element of c is null and this |
232 |
|
* collection does not support removing null values. |
233 |
|
* @throws NullPointerException if c itself is null. |
234 |
*/ |
*/ |
235 |
boolean removeAll(Collection c); |
boolean removeAll(Collection c); |
236 |
|
|
241 |
* @return true if this collection was modified as a result of this call. |
* @return true if this collection was modified as a result of this call. |
242 |
* @throws UnsupportedOperationException if this collection does not |
* @throws UnsupportedOperationException if this collection does not |
243 |
* support the retainAll operation. |
* support the retainAll operation. |
244 |
|
* @throws ClassCastException if the type of any element in c is not a valid |
245 |
|
* type for this collection. |
246 |
|
* @throws NullPointerException if some element of c is null and this |
247 |
|
* collection does not support retaining null values. |
248 |
|
* @throws NullPointerException if c itself is null. |
249 |
*/ |
*/ |
250 |
boolean retainAll(Collection c); |
boolean retainAll(Collection c); |
251 |
|
|