Why doesn't AtomicReference override equals? [duplicate]

混江龙づ霸主 提交于 2021-01-27 20:09:38

问题


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 wrapped value).

Are there any good reasons AtomicReference doesn't override equals and hashCode?!

来源:https://stackoverflow.com/questions/61803956/why-doesnt-atomicreference-override-equals

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!