Brian

13%
Flag icon
When you are finished writing your equals method, ask yourself three questions: Is it symmetric? Is it transitive? Is it consistent? And don’t just ask yourself; write unit tests to check, unless you used AutoValue (page 49) to generate your equals method,
Effective Java
Rate this book
Clear rating
Open Preview