Utilities for dealing with tasks.
Type Params | Return Type | Name and description |
---|---|---|
|
static Provider<Task> |
taskProviderFrom(TaskContainer tasks, ProviderFactory providerFactory, Object o) Creates a basic task Provider instance from an object. |
|
static Provider<Task> |
taskProviderFrom(Project project, Object o) Creates a basic task Provider instance from an object. |
|
static java.util.List<Task> |
taskize(Project project, Iterable<Object> taskyThings) Resolves a list of items to a list of tasks. |
|
static java.util.List<Task> |
taskize(TaskContainer tasks, Iterable<Object> taskyThings) Resolves a list of items to a list of tasks. |
|
static Task |
taskize(TaskContainer tasks, Object t) Resolves a single item to an existing task instance. |
|
static Task |
taskize(Project project, Object t) Resolves a single item to an existing task instance. |
Creates a basic task Provider instance from an object.
tasks
- Task container for this project.o
- Object to be evaluated to a task.Creates a basic task Provider instance from an object.
project
- Project context.o
- Object to be evaluated to a task.Resolves a list of items to a list of tasks. List items can be any of the types supported by taskize(Project project, Object o), but in addition the following are supported:
Provider
, Callable
or Closure
returns an iterable sequence.project
- Project contexttaskyThings
- Iterable sequence of items to be resolved.Resolves a list of items to a list of tasks. List items can be any of the types supported by taskize(Project project, Object o), but in addition the following are supported:
Provider
, Callable
or Closure
returns an iterable sequence.
tasks
- The current project's task container.taskyThings
- Iterable sequence of items to be resolved.Resolves a single item to an existing task instance. The following types are supported:
CharSequence
Callable
that returns one of the above typestasks
- Task container for current project.t
- Object to resolve to taskResolves a single item to an existing task instance. The following types are supported:
CharSequence
Callable
that returns one of the above typesproject
- Project contextt
- Object to resolve to task