(Collection<?> c)
| 233 | } |
| 234 | |
| 235 | public boolean containsAll(Collection<?> c) { |
| 236 | if (c == null) { |
| 237 | throw new NullPointerException("collection is null"); |
| 238 | } |
| 239 | |
| 240 | Iterator<?> it = c.iterator(); |
| 241 | while (it.hasNext()) { |
| 242 | if (! contains(it.next())) { |
| 243 | return false; |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | return true; |
| 248 | } |
| 249 | |
| 250 | public boolean add(V value) { |
| 251 | throw new UnsupportedOperationException(); |