https://kotlinlang.org logo
#codereview
Title
# codereview
a

arekolek

05/14/2019, 12:06 PM
In this case I’d say you’re right. I’d use a sealed class if some field would be always null for
PeriodType.Past
for example, but if everything is the same, enum should be fine
2
e

Eugen Martynov

05/14/2019, 12:31 PM
Thank you!
3 Views