Package-level declarations

Types

Link copied to clipboard
fun interface Action<in T>

Represents an action that can be performed on a value of type T.

Link copied to clipboard
fun interface Condition<in T>

根据提供的 T 判断其是否符合某种“条件”。

Link copied to clipboard
fun interface ConfigurerFunction<in CONF>

一个"配置"函数接口。通过 receiver 接收配置信息参数。

Link copied to clipboard
open class MergeableFactoriesConfigurator<CONTEXT : Any, V : Any, K : MergeableFactory.Key>(configurators: Map<K, ConfigurerFunction<Any>>, factories: Map<K, (CONTEXT) -> V>)

对一组 MergeableFactory 进行聚合组装的配置器。

Link copied to clipboard
interface MergeableFactory<out K : MergeableFactory.Key, out V : Any, CONF : Any, CTX : Any>

一个可应用于 MergeableFactoriesConfigurator 的工厂。

Functions

Link copied to clipboard
inline fun <CONF> toConfigurerFunction(crossinline block: CONF.() -> Unit): ConfigurerFunction<CONF>

CONF.() -> Unit to ConfigurerFunction

Inherited functions

Link copied to clipboard

Invoke configurer with CONF

Link copied to clipboard
Link copied to clipboard