Why doesn't AtomicReference override equals? [duplicate]
问题 This question already has answers here : Why are two AtomicIntegers never equal? (9 answers) The right way to do equals and hashcode of objects held by AtomicReference (3 answers) Closed 9 months ago . I started using AtomicReference in Java beans to have the 3state semantic when reading objects from JSON. As I like to have equals and hashCode implementations in my beans I'm wondering why AtomicReference doesn't override equals. The implementation would be trivial (simply delegate to the