MCPcopy Index your code
hub / github.com/antlr/codebuff / addAll

Method addAll

output/java_guava/1.4.18/Iterables.java:377–384  ·  view source on GitHub ↗

Adds all elements in iterable to collection. @return true if collection was modified as a result of this operation.

(Collection<T> addTo, Iterable<? extends T> elementsToAdd)

Source from the content-addressed store, hash-verified

375 */
376
377 @CanIgnoreReturnValue
378 public static <T> boolean addAll(Collection<T> addTo, Iterable<? extends T> elementsToAdd) {
379 if (elementsToAdd instanceof Collection) {
380 Collection<? extends T> c = Collections2.cast(elementsToAdd);
381 return addTo.addAll(c);
382 }
383 return Iterators.addAll(addTo, checkNotNull(elementsToAdd).iterator());
384 }
385
386 /**
387 * Returns the number of elements in the specified iterable that equal the

Callers 15

createMethod · 0.95
copyOfMethod · 0.95
createMethod · 0.95
newArrayDequeMethod · 0.95
newPriorityQueueMethod · 0.95
createMethod · 0.95
createMethod · 0.95
newLinkedListMethod · 0.95

Calls 5

castMethod · 0.95
addAllMethod · 0.95
addAllMethod · 0.65
iteratorMethod · 0.65
checkNotNullMethod · 0.45

Tested by

no test coverage detected