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 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)