MCPcopy Create free account
hub / github.com/Whiley/WhileyCompiler / addAll

Method addAll

src/main/java/wycc/util/ArrayUtils.java:211–215  ·  view source on GitHub ↗

Add all elements from an array into a given collection of the same type. @param lhs The left-hand side. Elements of this array will be added to the collection. @param rhs The right-hand side. Elements from the left-hand side will be added to this collecti

(T[] lhs, Collection<T> rhs)

Source from the content-addressed store, hash-verified

209 * added to this collection.
210 */
211 public static <T> void addAll(T[] lhs, Collection<T> rhs) {
212 for(int i=0;i!=lhs.length;++i) {
213 rhs.add(lhs[i]);
214 }
215 }
216
217 /**
218 * Convert a collection of strings into a string array.

Callers 1

Calls 1

addMethod · 0.65

Tested by

no test coverage detected