Sequences

interface Sequences : Variable

Sequence 操作相关接口.

Author

M8Test, [email protected], https://m8test.com

Functions

Link copied to clipboard
abstract fun getGlobalName(): String

获取作为全局变量时的名称.

Link copied to clipboard
abstract fun getPublicType(): Type

获取 Variable 注入到脚本时需要显示的类型.

Link copied to clipboard
abstract fun isPrefixRequired(): Boolean

是否需要添加前缀, 每种编程语言添加的前缀不一样, 前缀可以通过 Language.getVariablePrefix 获取.

Link copied to clipboard
abstract fun isSuffixRequired(): Boolean

是否需要添加后缀, 每种编程语言添加的后缀不一样, 后缀可以通过 Language.getVariableSuffix 获取.

Link copied to clipboard
abstract fun <T> sequenceOf(vararg elements: T): Sequence<T>

创建新的 Sequence 并将给定元素添加到其中.

Link copied to clipboard
abstract fun <T> toList(sequence: Sequence<T>): List<T>

Sequence 转换为 List.

Link copied to clipboard
abstract fun <T> toMutableList(sequence: Sequence<T>): MutableList<T>

Sequence 转换为 MutableList.

Link copied to clipboard
abstract fun <T> toMutableSet(sequence: Sequence<T>): MutableSet<T>

Sequence 转换为 MutableSet.

Link copied to clipboard
abstract fun <T> toSet(sequence: Sequence<T>): Set<T>

Sequence 转换为 Set.

Link copied to clipboard
abstract fun <T> toTypedArray(sequence: Sequence<T>, clazz: Class<T>): Array<T>

Sequence 转换为 Array.