@see java.util.Collection#addAll(Collection)
(Collection<? extends E> c1)
| 2786 | * @see java.util.Collection#addAll(Collection) |
| 2787 | */ |
| 2788 | @SuppressWarnings("unchecked") |
| 2789 | public boolean addAll(Collection<? extends E> c1) { |
| 2790 | Object[] array = c1.toArray(); |
| 2791 | for (Object o : array) { |
| 2792 | checkType(o, type); |
| 2793 | } |
| 2794 | return c.addAll((List<E>) Arrays.asList(array)); |
| 2795 | } |
| 2796 | |
| 2797 | /** |
| 2798 | * @see java.util.Collection#removeAll(Collection) |