MCPcopy Create free account
hub / github.com/apache/poi / addAll

Method addAll

src/java/org/apache/poi/util/IntList.java:172–184  ·  view source on GitHub ↗

Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator. The behavior of this operation is unspecified if the specified collection is modified while the operation is in progress. (Note that this wil

(final IntList c)

Source from the content-addressed store, hash-verified

170 */
171
172 public boolean addAll(final IntList c)
173 {
174 if (c._limit != 0)
175 {
176 if ((_limit + c._limit) > _array.length)
177 {
178 growArray(_limit + c._limit);
179 }
180 System.arraycopy(c._array, 0, _array, _limit, c._limit);
181 _limit += c._limit;
182 }
183 return true;
184 }
185
186 /**
187 * Inserts all of the elements in the specified collection into

Callers 15

testAddAllMethod · 0.95
getTextMethod · 0.45
processShapeMethod · 0.45
readFromMethod · 0.45
getAllPackagePicturesMethod · 0.45
XWPFRunMethod · 0.45
getAllPackagePicturesMethod · 0.45
setChildRecordsMethod · 0.45
cloneMethod · 0.45
insertChartRecordsMethod · 0.45
LinkTableMethod · 0.45
getListenersMethod · 0.45

Calls 2

growArrayMethod · 0.95
arraycopyMethod · 0.80

Tested by 8

testAddAllMethod · 0.76
runFormatTestsMethod · 0.36
testKeySetMethod · 0.36
testValuesMethod · 0.36
testEntrySetMethod · 0.36
testEntrySetByValueMethod · 0.36
testKeySetByValueMethod · 0.36
testValuesByValueMethod · 0.36