@Equals field's annotation as alternative for equal() & hashCode() implementations - what do you think about it?
As usually When you need to overwirte equal() also must to overwirte hashCode()
Go for it. Let me know how you go. ;)
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...
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.