MCPcopy Create free account
hub / github.com/ReadyTalk/avian / addAll

Method addAll

classpath/java/util/ArrayDeque.java:158–172  ·  view source on GitHub ↗
(Collection<? extends T> c)

Source from the content-addressed store, hash-verified

156 }
157
158 @Override
159 public boolean addAll(Collection<? extends T> c) {
160 if (c == null || c.isEmpty()) {
161 return false;
162 }
163
164 ensureCapacity(size() + c.size());
165
166 Iterator<? extends T> it = c.iterator();
167 while (it.hasNext()) {
168 add(it.next());
169 }
170
171 return true;
172 }
173
174 @Override
175 public boolean removeAll(Collection<?> c) {

Callers 1

ArrayDequeMethod · 0.95

Calls 8

ensureCapacityMethod · 0.95
sizeMethod · 0.95
isEmptyMethod · 0.65
sizeMethod · 0.65
iteratorMethod · 0.65
hasNextMethod · 0.65
addMethod · 0.65
nextMethod · 0.65

Tested by

no test coverage detected