(Collection<?> c)
| 195 | } |
| 196 | |
| 197 | public boolean containsAll(Collection<?> c) { |
| 198 | if (c == null) { |
| 199 | throw new NullPointerException("collection is null"); |
| 200 | } |
| 201 | |
| 202 | Iterator<?> it = c.iterator(); |
| 203 | while (it.hasNext()) { |
| 204 | if (! contains(it.next())) { |
| 205 | return false; |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | return true; |
| 210 | } |
| 211 | |
| 212 | public boolean add(V value) { |
| 213 | throw new UnsupportedOperationException(); |