Top Fields Constructors Methods
org.eclipse.collections.impl.forkjoin

public Class FJListObjectIntProcedureTask<T, PT extends ObjectIntProcedure<? super T>>

extends ForkJoinTask<PT extends ObjectIntProcedure<? super T>>
Class Inheritance
Imports
java.util.ArrayList, .List, java.util.concurrent.ForkJoinTask, org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure, org.eclipse.collections.api.list.ListIterable, org.eclipse.collections.impl.parallel.ObjectIntProcedureFactory, org.eclipse.collections.impl.utility.ArrayListIterate, .ListIterate

Field Summary

Modifier and TypeField and Description
private final int
private final List<T>
private PT
private final ObjectIntProcedureFactory<PT>
private final int
private final FJListObjectIntProcedureRunner<T, PT>

Constructor Summary

AccessConstructor and Description
public
FJListObjectIntProcedureTask(FJListObjectIntProcedureRunner<T, PT> newFJTaskRunner, ObjectIntProcedureFactory<PT> newBlockFactory, List<T> list, int index, int sectionSize, boolean isLast)

Creates an array of VoidBlockFJTasks wrapping VoidBlocks created by the specified VoidBlockFactory.

Method Summary

Modifier and TypeMethod and Description
protected boolean
exec()

Implements abstract java.util.concurrent.ForkJoinTask.exec.

Immediately performs the base action of this task and returns true if, upon return from this method, this task is guaranteed to have completed.

public PT
getRawResult()

Implements abstract java.util.concurrent.ForkJoinTask.getRawResult.

Returns the result that would be returned by join, even if this task completed abnormally, or null if this task is not known to have been completed.

protected void
setRawResult(PT value)

Implements abstract java.util.concurrent.ForkJoinTask.setRawResult.

Forces the given value to be returned as a result.

Inherited from java.util.concurrent.ForkJoinTask:
adaptadaptadaptadaptInterruptibleadaptInterruptibleadaptInterruptiblecancelcompareAndSetForkJoinTaskTagcompletecompleteExceptionallyexceptionNowforkgetgetgetExceptiongetForkJoinTaskTaggetPoolgetQueuedTaskCountgetSurplusQueuedTaskCounthelpQuiesceinForkJoinPoolinvokeinvokeAllinvokeAllinvokeAllisCancelledisCompletedAbnormallyisCompletedNormallyisDonejoinpeekNextLocalTaskpollNextLocalTaskpollSubmissionpollTaskquietlyCompletequietlyInvokequietlyJoinquietlyJoinquietlyJoinUninterruptiblyreinitializeresultNowsetForkJoinTaskTagstatetryUnfork

Field Detail

endback to summary
private final int end
listback to summary
private final List<T> list
procedureback to summary
private PT procedure
procedureFactoryback to summary
private final ObjectIntProcedureFactory<PT> procedureFactory
startback to summary
private final int start
taskRunnerback to summary
private final FJListObjectIntProcedureRunner<T, PT> taskRunner

Constructor Detail

FJListObjectIntProcedureTaskback to summary
public FJListObjectIntProcedureTask(FJListObjectIntProcedureRunner<T, PT> newFJTaskRunner, ObjectIntProcedureFactory<PT> newBlockFactory, List<T> list, int index, int sectionSize, boolean isLast)

Creates an array of VoidBlockFJTasks wrapping VoidBlocks created by the specified VoidBlockFactory.

Method Detail

execback to summary
protected boolean exec()

Implements abstract java.util.concurrent.ForkJoinTask.exec.

Doc from java.util.concurrent.ForkJoinTask.exec.

Immediately performs the base action of this task and returns true if, upon return from this method, this task is guaranteed to have completed. This method may return false otherwise, to indicate that this task is not necessarily complete (or is not known to be complete), for example in asynchronous actions that require explicit invocations of completion methods. This method may also throw an (unchecked) exception to indicate abnormal exit. This method is designed to support extensions, and should not in general be called otherwise.

Annotations
@Override
getRawResultback to summary
public PT getRawResult()

Implements abstract java.util.concurrent.ForkJoinTask.getRawResult.

Doc from java.util.concurrent.ForkJoinTask.getRawResult.

Returns the result that would be returned by join, even if this task completed abnormally, or null if this task is not known to have been completed. This method is designed to aid debugging, as well as to support extensions. Its use in any other context is discouraged.

Annotations
@Override
setRawResultback to summary
protected void setRawResult(PT value)

Implements abstract java.util.concurrent.ForkJoinTask.setRawResult.

Doc from java.util.concurrent.ForkJoinTask.setRawResult.

Forces the given value to be returned as a result. This method is designed to support extensions, and should not in general be called otherwise.

Annotations
@Override