(Collection <? extends T> collection)
| 26 | } |
| 27 | |
| 28 | @Override |
| 29 | public boolean addAll(Collection <? extends T> collection) { |
| 30 | if (collection == null) { |
| 31 | throw new NullPointerException(); |
| 32 | } |
| 33 | |
| 34 | for (T element : collection) { |
| 35 | add(element); |
| 36 | } |
| 37 | |
| 38 | return true; |
| 39 | } |
| 40 | |
| 41 | @Override |
| 42 | public void clear() { |