(Object element)
| 230 | } |
| 231 | |
| 232 | @Override |
| 233 | public boolean contains(Object element) { |
| 234 | Iterator<T> it = iterator(); |
| 235 | while (it.hasNext()) { |
| 236 | T next = it.next(); |
| 237 | if (next == null) { |
| 238 | if (element == null) { |
| 239 | return true; |
| 240 | } |
| 241 | } else if (next.equals(element)) { |
| 242 | return true; |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | return false; |
| 247 | } |
| 248 | |
| 249 | @Override |
| 250 | public boolean containsAll(Collection<?> c) { |
no test coverage detected