Skip to main content

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

No replies
frankblemke
Offline
Joined: 2012-04-15
Points: 0

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 sourceforge.net, if you are interested...