It depends on your use case, but rule of the thumb...
# codereview
d
It depends on your use case, but rule of the thumb is when you riddle your code with too many ifs on a certain state or condition, consider splitting the class instead... sealed class is mainly helpful in exhastive `when`s.