BotManagers

interface BotManagers : List<BotManager<*>>

Application 中注册完成的所有 BotManager 集。

Functions

Link copied to clipboard
abstract operator override fun contains(element: BotManager<*>): Boolean
Link copied to clipboard
abstract override fun containsAll(elements: Collection<BotManager<*>>): Boolean
Link copied to clipboard
open fun forEach(p0: Consumer<in BotManager<*>>)
Link copied to clipboard
abstract operator fun get(index: Int): BotManager<*>
Link copied to clipboard
abstract fun indexOf(element: BotManager<*>): Int
Link copied to clipboard
abstract override fun isEmpty(): Boolean
Link copied to clipboard
abstract operator override fun iterator(): Iterator<BotManager<*>>
Link copied to clipboard
abstract fun lastIndexOf(element: BotManager<*>): Int
Link copied to clipboard
abstract fun listIterator(index: Int): ListIterator<BotManager<*>>
Link copied to clipboard
Link copied to clipboard
abstract fun register(botVerifyInfo: BotVerifyInfo): Bot?

通过 BotVerifyInfo 中的 组件信息 去当前环境中寻找对应组件的、实现了 Bot注册器事件提供者, 并尝试注册此bot。

Link copied to clipboard
open override fun spliterator(): Spliterator<BotManager<*>>
Link copied to clipboard
open fun stream(): Stream<BotManager<*>>
Link copied to clipboard
abstract fun subList(fromIndex: Int, toIndex: Int): List<BotManager<*>>
Link copied to clipboard
open fun <T : Any> toArray(p0: IntFunction<Array<T>>): Array<T>

Properties

Link copied to clipboard
abstract override val size: Int

Extensions

Link copied to clipboard
Link copied to clipboard
@JvmName(name = "by")
fun <T> Collection<T>.asItems(): Items<T>

使用 List 构建为 Items

Link copied to clipboard

构建一个当前 List 对应的 View

fun <T> Collection<T>.asView(): View<T>

构建一个当前 Collection 对应的 View。 如果当前集合类型为 List, 则相当于 List.asView

fun <T> Iterable<T>.asView(): View<T>

构建一个当前 Iterable 对应的 View。 如果当前类型为 Collection, 则相当于 Collection.asView

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

将 元素为 MsgElementIterable 转化为 Messages 实例。