Porting this over to Kotlin with a simple enum leads me to code that looks like this: enum class Type(val value: Int) { A(1), B(2), C(3); companion object ...
確定! 回上一頁