MCPcopy Create free account
hub / github.com/davidgiven/luje / add

Method add

lib/java/util/AbstractList.java:241–254  ·  view source on GitHub ↗
(int location, E object)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 1

addMethod · 0.65

Tested by

no test coverage detected