3 ms·
One important reason for equals/hashCode on data objects is that you can put them into sets, and have them uniqued correctly. Also, do you really never need to
by wtetzner 9y ago
One important reason for equals/hashCode on data objects is that you can put them into sets, and have them uniqued correctly.
Also, do you really never need to call .equals on data objects?