Paul at Avans Breda
09/10/2024, 9:44 AMRonny Bräunlich
09/10/2024, 10:36 AMhashCode
is overwritten due to data classes' characteristics. The difference is, that in the example equals()
is based solely on id
and hashCode
uses name
and id
, both.Paul at Avans Breda
09/10/2024, 11:18 AMRonny Bräunlich
09/10/2024, 11:20 AMPaul at Avans Breda
09/10/2024, 11:21 AM