Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 3.93 KB

File metadata and controls

40 lines (27 loc) · 3.93 KB

subkt / myaa.subkt.tasks / ValueGroup

ValueGroup

class ValueGroup<T> : ItemGroup<T> (source)

ItemGroup that keeps track of simple values of type T. The closure is evaluated immediately for each entry.

Constructors

Name Summary
<init> ValueGroup(subs: Subs, action: ValueClosure<T>.() -> T)
ItemGroup that keeps track of simple values of type T. The closure is evaluated immediately for each entry.

Properties

Name Summary
action val action: ValueClosure<T>.() -> T

Inherited Properties

Name Summary
subs val subs: Subs
The Subs instance this ItemGroup is associated with.

Functions

Name Summary
createItem fun createItem(entry: String, isBatch: Boolean, episodes: List<String>): T
Returns a new item of type T.

Inherited Functions

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.