MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / intArray

Method intArray

arrays/ParallelSetAll.java:10–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8public class ParallelSetAll {
9 static final int SIZE = 10_000_000;
10 static void intArray() {
11 int[] ia = new int[SIZE];
12 Arrays.setAll(ia, new Rand.Pint()::get);
13 Arrays.parallelSetAll(ia, new Rand.Pint()::get);
14 }
15 static void longArray() {
16 long[] la = new long[SIZE];
17 Arrays.setAll(la, new Rand.Plong()::get);

Callers 1

mainMethod · 0.95

Calls 2

setAllMethod · 0.45
parallelSetAllMethod · 0.45

Tested by

no test coverage detected