Bernhard
11/15/2021, 2:52 PMMichael de Kaste
11/15/2021, 2:59 PMMichael de Kaste
11/15/2021, 3:01 PMdata class SomeClass(
val someField: String,
val someOtherField: Int
) {
val currentDate: LocalDate
get() = LocalDate.now()
}
this is what you can doBernhard
11/15/2021, 3:01 PMBernhard
11/15/2021, 3:03 PMSomeClass(currentDate by x { Date() })
Bernhard
11/15/2021, 3:04 PMBernhard
11/15/2021, 3:04 PMBernhard
11/15/2021, 3:04 PMMichael de Kaste
11/15/2021, 3:07 PMMichael de Kaste
11/15/2021, 3:08 PMBernhard
11/15/2021, 3:10 PMBernhard
11/15/2021, 3:11 PMPaul Griffith
11/15/2021, 3:25 PMsealed class DownloadObject
data class NormalCase : DownloadObject()
class SpecialCase : DownloadObject()