posted 14 years ago
Hi All,
We created a custom class to act as a key for HashMap as follows :
The CommonUtils.fieldChanged function is as follows :
When this class is used as a Key in HashMap and retrieve the value, I get a null - although in Debug mode I see the same key present in the HashMap too. I believe that this has got to do something with the equals / hashCode methods. Can anybody point to as what is wrong ?
Thanks,
Midhun