Class ParallelArrayIterate
java.lang.Object
org.eclipse.collections.impl.parallel.ParallelArrayIterate
The ParallelArrayIterate class contains a parallel forEach algorithm that work with Java arrays. The forEach
algorithm employs a batching fork and join approach. All Collections that are not array based use
ParallelArrayIterate to parallelize, by converting themselves to an array using toArray().
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T,
BT extends Procedure<? super T>>
voidforEach
(T[] array, ProcedureFactory<BT> procedureFactory, Combiner<BT> combiner) static <T,
BT extends Procedure<? super T>>
voidforEach
(T[] array, ProcedureFactory<BT> procedureFactory, Combiner<BT> combiner, int minForkSize, int taskCount) static <T,
BT extends Procedure<? super T>>
voidforEachOn
(T[] array, ProcedureFactory<BT> procedureFactory, Combiner<BT> combiner, int minForkSize, int taskCount, Executor executor)
-
Method Details
-
forEach
public static <T,BT extends Procedure<? super T>> void forEach(T[] array, ProcedureFactory<BT> procedureFactory, Combiner<BT> combiner) -
forEach
public static <T,BT extends Procedure<? super T>> void forEach(T[] array, ProcedureFactory<BT> procedureFactory, Combiner<BT> combiner, int minForkSize, int taskCount) -
forEachOn
public static <T,BT extends Procedure<? super T>> void forEachOn(T[] array, ProcedureFactory<BT> procedureFactory, Combiner<BT> combiner, int minForkSize, int taskCount, Executor executor)
-