Class ParallelArrayIterate
- java.lang.Object
-
- org.eclipse.collections.impl.parallel.ParallelArrayIterate
-
public final class ParallelArrayIterate extends Object
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <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 Detail
-
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)
-
-