I think my question is quite simple, however I couldn\'t find the solution so I decided to ask here. What i need is to make a HashMap with a custom Key type lik
HashMap
You must implement properly equals and hashCode on the Pair class.
equals
hashCode
Pair
The HashMap uses these methods to differentiate and hash the key class.