java - Override Equals for Hashmap<String,String> -


i have hashmap,how override equals method hashmap?

thanks.

if want can do:

hashmap<string, string> map = new hashmap<string, string>(){     @override     public boolean equals(object o) {         // todo comparison here         return super.equals(o);     } }; map.equals(new hashmap<string, string>()); 

Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -