Writing an equals method - how hard can it be?
2018-01-21
If you’ve ever had to write or test an equals
method, you may have gotten a feel for how complex this can get. This post will explain a number of things that can go wrong, offer solutions, and explain how a library called EqualsVerifier can help you prevent unexpected behavior regarding object equality testing.