Jason5lee
03/25/2022, 2:50 PMsealed interface
or sealed class
?Luke
03/25/2022, 2:52 PMsealed interface
unless I need a constructor in the sealed class
Alejandro Rios
03/25/2022, 2:53 PMsealed class
is to handle the states of a response Failure/Success/Loading
ephemient
03/25/2022, 3:26 PM@Serializable
at present, so I still default to sealed class
unless there is a particular structure that can only be expressed as sealed interface
andylamax
03/25/2022, 11:48 PMephemient
03/25/2022, 11:51 PMephemient
03/25/2022, 11:51 PMephemient
03/25/2022, 11:51 PMStephan Schroeder
03/28/2022, 7:10 AMsealed interface
is that its implementing classes can be data classes, which is why sealed interfaces is my default. (good to know about the serializable restriction!)ephemient
03/28/2022, 4:27 PMŁukasz Gendek
03/29/2022, 9:12 AMephemient
03/29/2022, 3:49 PM