К
Size: a a a
К
QH
VM
Cannot access '<init>': it is private in 'ItemViewModel'
К
Cannot access '<init>': it is private in 'ItemViewModel'
VM
sealed class ItemViewModel {
abstract val titleId: Int
abstract val title: String?
abstract val value: String
abstract val clickable: Boolean
}
К
sealed class ItemViewModel {
abstract val titleId: Int
abstract val title: String?
abstract val value: String
abstract val clickable: Boolean
}
VM
К
p
S
QH
DS
if (item in setOf(Items.ITEM_1, Items.ITEM_2))
if (item == Items.ITEM_1 || item == Items.ITEM_2)
S
QH
if (item in setOf(Items.ITEM_1, Items.ITEM_2))
if (item == Items.ITEM_1 || item == Items.ITEM_2)
// companion / top-level
val set = setOf(…)
...
if (item in set)
DS
QH
S
СП
QH
VS