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

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

javascript - jquery or ashx not working -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -