Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在阅读 ComputingMap 仅支持身份相等而不支持 equals()。有人可以澄清为什么吗?
对于使用MapMaker构建的所有并发地图,equals() 用于强引用,身份相等用于弱引用和软引用。
请参阅softKeys、weakKeys、softValues、weakValues。