Companion

object Companion

Functions

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

使用 List 构建为 Items

Link copied to clipboard

通过迭代器构建 Items 实例。

Link copied to clipboard

得到内容为空的 Items 实例。

Link copied to clipboard
@JvmName(name = "of")
fun <T> items(vararg values: T): Items<T>

将一些元素作为 Items.

Link copied to clipboard
@JvmName(name = "transform")
fun <B, T> Items<B>.transformBlocking(transform: (B) -> T): Items<T>

转化一个 Items 中的元素类型并得到新的 Items 实例。