Skip to main content

Collections - independent from methods hashCode() and equals()

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2012-04-15

I recently wanted to use java.util.Collection, but couldn't use the implementations of hashCode() and equals() in the objects to be stored in the collection. Why not delegating the calls to these methods from the collection to any other methods that fit my needs? I coded a solution and called it he-collection. Take a look at he-collections on, if you are interested...