Home » Education » How to compare lists of custom classes without defining equals() and hashCode()?

How to compare lists of custom classes without defining equals() and hashCode()?

Written By The Debug Zone on Thursday, Jul 06, 2023 | 10:49 AM

 
java: How to compare lists of custom classes without defining equals() and hashCode()? Thanks for taking the time to learn more. In this video I'll go through your question, provide various answers & hopefully this will lead to your solution! Remember to always stay just a little bit crazy like me, and get through to the end resolution. Don't forget at any stage just hit pause on the video if the question & answers are going too fast. Content (except music & images) licensed under CC BY-SA meta.stackexchange.com/help/licensing Just wanted to thank those users featured in this video: Fred Pym (https://stackoverflow.com/users/4790051/fred-pym Michael Peyper (https://stackoverflow.com/users/6902543/michael-peyper) NoDataFound (https://stackoverflow.com/users/1023553/nodatafound) mirind4 (https://stackoverflow.com/users/1797020/mirind4) Trademarks are property of their respective owners. Disclaimer: All information is provided "AS IS" without warranty of any kind. You are responsible for your own actions. Please contact me if anything is amiss. I hope you have a wonderful day. Related to: java, unit-testing, assert, equality