Class 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 Detail

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