| 254 | } |
| 255 | |
| 256 | @Override |
| 257 | public boolean addAll(int location, Collection<? extends E> collection) { |
| 258 | if (modCount == fullList.modCount) { |
| 259 | if (0 <= location && location <= size) { |
| 260 | boolean result = fullList.addAll(location + offset, |
| 261 | collection); |
| 262 | if (result) { |
| 263 | size += collection.size(); |
| 264 | modCount = fullList.modCount; |
| 265 | } |
| 266 | return result; |
| 267 | } |
| 268 | throw new IndexOutOfBoundsException(); |
| 269 | } |
| 270 | throw new ConcurrentModificationException(); |
| 271 | } |
| 272 | |
| 273 | @Override |
| 274 | public boolean addAll(Collection<? extends E> collection) { |