A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Compare 2 HashMap<String, ArrayList>
Joined: Apr 06, 2008
Sep 11, 2011 15:51:22
I need a method to compare two
<String>>. Google Guava API has a Method but it is for single values only -
. Perhaps someone already has the solution or a reference to an online resource that covers this?
Stephan van Hulst
Joined: Sep 20, 2010
Sep 11, 2011 17:29:51
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.
I agree. Here's the link:
subject: Compare 2 HashMap<String, ArrayList>
Better OO design
Compare 2 Maps
in what ways can we change this formula..
Adding different objects to same in HashMap?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014