Kotlin - how to override setter for a data class constructor field?

后端 未结 0 1309
有刺的猬
有刺的猬 2020-12-07 23:01

I have a data class with a field.

data class Foo(
    val bar: String? = null
)

I need to store multiple bars. But also, because

相关标签:
回答
  • 消灭零回复
提交回复
热议问题