get all properties from data class that are not null in Kotlin

后端 未结 0 1229
离开以前
离开以前 2021-01-26 07:27

I have a data class "Sample" and wanted to collect all the values that are not null, in this case the result should be "name and "type". How to iterate

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