This question already has an answer here:
I have a very lengthy ArrayList comprised of objects some of them however, are undoubtedly duplicates. What is the best way of finding and removing these duplicates. Note: I have written a boolean-returning compareObjects() method.
java.util.Set
– Luiggi Mendoza Dec 6 '13 at 21:19