(int location, E object)
| 239 | } |
| 240 | |
| 241 | @Override |
| 242 | public void add(int location, E object) { |
| 243 | if (modCount == fullList.modCount) { |
| 244 | if (0 <= location && location <= size) { |
| 245 | fullList.add(location + offset, object); |
| 246 | size++; |
| 247 | modCount = fullList.modCount; |
| 248 | } else { |
| 249 | throw new IndexOutOfBoundsException(); |
| 250 | } |
| 251 | } else { |
| 252 | throw new ConcurrentModificationException(); |
| 253 | } |
| 254 | } |
| 255 | |
| 256 | @Override |
| 257 | public boolean addAll(int location, Collection<? extends E> collection) { |