Can I only implement equals() but not hashCode() if I only need to compare objects and not yet plan to put the objects into any hash based containers?
Seems all Jav
Well, obviously You can, but the fact that You don't plan to use hashing is not a sufficient reason not to implement it. Some of the libraries You use could make use of hashing. If you want to avoid testing equals or hashcode, You could try auto-generating those methods (most IDEs have that feature), or use project lombok (https://projectlombok.org)