I'm not sure I fully understand the question, but you're asking for something like this?
public boolean compare (List listA, List listB) {
if (listA.size() != listB.size () return false;
for (int i=0; i
Both lists should be sorted by that commonField field