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
Your Pair class need to implement hashCode() and equals() according to the contract specified in the Javadoc for Object.
hashCode()
equals()
Object