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

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -