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

Method addAll

lib/java/util/AbstractSequentialList.java:41–50  ·  view source on GitHub ↗
(int location, Collection<? extends E> collection)

Source from the content-addressed store, hash-verified

39 }
40
41 @Override
42 public boolean addAll(int location, Collection<? extends E> collection) {
43 ListIterator<E> it = listIterator(location);
44 Iterator<? extends E> colIt = collection.iterator();
45 int next = it.nextIndex();
46 while (colIt.hasNext()) {
47 it.add(colIt.next());
48 }
49 return next != it.nextIndex();
50 }
51
52 @Override
53 public E get(int location) {

Callers

nothing calls this directly

Calls 6

listIteratorMethod · 0.95
iteratorMethod · 0.65
nextIndexMethod · 0.65
hasNextMethod · 0.65
addMethod · 0.65
nextMethod · 0.65

Tested by

no test coverage detected