I want to implement a peer override that compares two Java queue objects based on each of them having the same (by value) content.
I can probably crack some kind of code, but of course, someone has decided it is elegant already. Google search did not bring any results, so I came here further.
I appreciate any suggestions. I will also need to do the same with the ArrayList and HashMap collections.
BTW, for equals (), I use this as my guide: http://www.javapractices.com/topic/TopicAction.do?Id=17
This gives some clues, but apparently I need more help when it comes to collections. The types contained in the collections override equals () based on the recommendations from this link.
source
share