File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compare 2 HashMap<String, ArrayList>

 
Tim Jones
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need a method to compare two HashMap<String, ArrayList<String>>. Google Guava API has a Method but it is for single values only - http://docs.guava-libraries.googlecode.com/git-history/v9.0/javadoc/com/google/common/collect/package-frame.html. Perhaps someone already has the solution or a reference to an online resource that covers this?

Thanks
 
Stephan van Hulst
Bartender
Pie
Posts: 4826
34
Chrome Netbeans IDE Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And how would you compare two of such maps? When are they equal? If you can describe it, you can easily compare the two by creating your own Comparator.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic