Join Slack
Powered by
What's the best way of excluding some properties i...
# announcements
f
farzad
02/23/2020, 9:23 AM
What's the best way of excluding some properties in equals/hashcode of data classes?
farzad
02/23/2020, 9:23 AM
https://stackoverflow.com/questions/29595301/property-include-exclude-on-kotlin-data-classes/60354153#60354153
d
Dominaezzz
02/23/2020, 11:35 AM
Just don't declare the*properties* in the constructor.
s
Saurabh
02/23/2020, 2:25 PM
Just to add, don't add the property in the primary constructor.
2
Views
Open in Slack
Previous
Next