Package pabeles.concurrency
Class IntOperatorTask
- All Implemented Interfaces:
Serializable,Future<Number>
- Direct Known Subclasses:
IntOperatorTask.Max,IntOperatorTask.Min,IntOperatorTask.Sum
public abstract class IntOperatorTask extends ForkJoinTask<Number>
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIntOperatorTask.Maxstatic classIntOperatorTask.Minstatic classIntOperatorTask.Sum -
Constructor Summary
Constructors Modifier Constructor Description protectedIntOperatorTask(int value, int max, Class primitiveType, IntProducerNumber consumer) -
Method Summary
Modifier and Type Method Description protected booleanexec()NumbergetRawResult()protected abstract IntOperatorTasknewInstance(int value, int max, Class primitiveType, IntProducerNumber consumer)protected abstract voidoperator(Number next)protected voidsetRawResult(Number value)Methods inherited from class java.util.concurrent.ForkJoinTask
adapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, complete, 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
-
Constructor Details
-
IntOperatorTask
-
-
Method Details
-
getRawResult
- Specified by:
getRawResultin classForkJoinTask<Number>
-
setRawResult
- Specified by:
setRawResultin classForkJoinTask<Number>
-
exec
protected boolean exec()- Specified by:
execin classForkJoinTask<Number>
-
newInstance
protected abstract IntOperatorTask newInstance(int value, int max, Class primitiveType, IntProducerNumber consumer) -
operator
-