Skip to main content

@Equals field's annotation as alternative for equal() & hashCode()

3 replies [Last post]
jacekw
Offline
Joined: 2010-01-06

@Equals field's annotation as alternative for equal() & hashCode() implementations - what do you think about it?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jammychen
Offline
Joined: 2009-06-17

As usually When you need to overwirte equal() also must to overwirte hashCode()

peter__lawrey
Offline
Joined: 2005-11-01

Go for it. Let me know how you go. ;)

frankblemke
Offline
Joined: 2012-04-15

If you are interested in collections, that are independent of the implementations of hashCode() and equals() in the stored objects, take a look at he-collections on sourceforge.net. These collections can call other methods as these two...