SwitchCase

interface SwitchCase<V, R>

配置 switch-case 语句的接口.

Author

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

Functions

Link copied to clipboard
abstract fun add(condition: (V?) -> Boolean, block: (V?) -> R?)

添加 switch-case 语句.

Link copied to clipboard
abstract fun addDefault(block: (V?) -> R?)

添加默认的 switch-case 语句.