package saker.build.task.utils
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(
RThe result type of the task.
saker.build 0.8.13
public static < | create( Creates a new instance. |
public TaskFactory< | 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
.Gets the task factory.
The task factory.
Gets the task identifer.
The task id.