Comparing two lists and removing duplicates from one
问题 I have an object called FormObject that contains two ArrayLists - oldBooks and newBooks - both of which contain Book objects. oldBooks is allowed to contain duplicate Book objects newBooks is not allowed to contain duplicate Book objects within itself and cannot include any duplicates of Book objects in the oldBooks list. The definition of a duplicate Book is complex and I can't override the equals method as the definition is not universal across all uses of the Book object. I plan to have a