How to Write an Equality Method in Java

This article describes a technique for overriding the equals method that preserves the contract of equals even when subclassses of concrete classes add new fields.

Lexy over 12 years ago
This website uses short-lived cookies to improve usability.
Accept or learn more