saker.build Documentation TaskDoc JavaDoc Packages
public interface TaskBuilderResult<R>
Interface holding the result of a task builder operation.

The interface provides access to the task identifier and task factory of the built task. This pair can be used to start new tasks in the build system.

This is an utility interface that serves to represent the pair of a task identifier and corresponding task factory. It has no significance in the build system runtime, but is generally used by extensions/plugins for saker.build.

Use create(TaskIdentifier, TaskFactory<R>) to create a new instance.

RThe result type of the task.
saker.build 0.8.13
Methods
public static <R> TaskBuilderResult<R>
create(TaskIdentifier taskid, TaskFactory<R> taskfactory)
Creates a new instance.
public TaskFactory<R>
Gets the task factory.
public TaskIdentifier
Gets the task identifer.
public static <R> TaskBuilderResult<R> create(TaskIdentifier taskid, TaskFactory<R> taskfactory) throws NullPointerException
Creates a new instance.

The returned instance implements the hashCode() and equals(Object) contract in relation with other instances created by this method. The returned object also implements Externalizable.

RThe result type of the task.
taskidThe task identifier.
taskfactoryThe task factory.
The created instance.
NullPointerExceptionIf any of the arguments are null.
public abstract TaskFactory<R> getTaskFactory()
Gets the task factory.
The task factory.
Gets the task identifer.
The task id.