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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -