Android - Compare two list for equality irrespective of the order of items -


i need compare 2 list of objects irrespective of order

example:

list1 = { object1, object2, object3, object4 } list2 = { object4, object1, object2, object3 } 

compare(list1, list2) should return true.

here simple example compare 2 lists in java,

http://beginnersbook.com/2013/12/how-to-compare-two-arraylist-in-java/

how compare 2 different list object in java?


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -