Class ForEachIntTask

  • All Implemented Interfaces:
    java.io.Serializable, java.util.concurrent.Future<java.lang.Void>

    public final class ForEachIntTask
    extends java.util.concurrent.CountedCompleter<java.lang.Void>
    A ForkJoinTask for performing a parallel for-each operation;
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ForEachIntTask​(java.util.Spliterator.OfInt theSpliterator, java.util.function.BooleanSupplier theCancellationFlag, java.util.function.IntConsumer theConsumer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void compute()  
      • Methods inherited from class java.util.concurrent.CountedCompleter

        addToPendingCount, compareAndSetPendingCount, complete, decrementPendingCountUnlessZero, exec, firstComplete, getCompleter, getPendingCount, getRawResult, getRoot, helpComplete, nextComplete, onCompletion, onExceptionalCompletion, propagateCompletion, quietlyCompleteRoot, setPendingCount, setRawResult, tryComplete
      • Methods inherited from class java.util.concurrent.ForkJoinTask

        adapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, completeExceptionally, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollSubmission, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, reinitialize, setForkJoinTaskTag, tryUnfork
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ForEachIntTask

        public ForEachIntTask​(java.util.Spliterator.OfInt theSpliterator,
                              java.util.function.BooleanSupplier theCancellationFlag,
                              java.util.function.IntConsumer theConsumer)
    • Method Detail

      • compute

        public void compute()
        Specified by:
        compute in class java.util.concurrent.CountedCompleter<java.lang.Void>