subkt / myaa.subkt.tasks / TaskGroup
class TaskGroup<T :
Task
> :
ItemGroup
<
TaskProvider
<
T
>>
(source)
A group of tasks of the same type.
Name | Summary |
---|---|
<init> | TaskGroup(name: String , subs: Subs , klass: KClass < T >) A group of tasks of the same type. |
Name | Summary |
---|---|
klass | val klass: KClass < T > The class object of the task type for this group. |
name | val name: String The name of this task group. |
Name | Summary |
---|---|
subs | val subs: Subs The Subs instance this ItemGroup is associated with. |
Name | Summary |
---|---|
createItem | fun createItem(entry: String , isBatch: Boolean , episodes: List < String >): TaskProvider < T > Registers a new task for the given entry, or returns an existing task if it exists. The returned task will following the naming scheme name.[entry](create-item.md#myaa.subkt.tasks.TaskGroup$createItem(kotlin.String, kotlin.Boolean, kotlin.collections.List((kotlin.String)))/entry). |
toString | fun toString(): String |
Name | Summary |
---|---|
batchItems | fun batchItems(entries: Iterable < String >): List < T > fun batchItems(entries: Provider <out Iterable < String >>): List < T > Get all items corresponding to the specified entries. fun batchItems(task: Task ): List < T > Get all items corresponding to the episodes of the given task. |
item | fun item(entry: String ): T Get the item corresponding to the specified entry. fun item(task: Task ): T Get the item of the same the entry as the given task. |
registerItemMaybe | fun registerItemMaybe(entry: String , isBatch: Boolean , episodes: List < String >): T Register a new item or return the item if it already exists. |