我一直在读,computingmap只支持标识相等,而不支持equals()。有人能解释为什么吗?
对于所有使用 MapMaker ,equals()用于强引用,标识相等用于弱引用和软引用。
见 softKeys , weakKeys , softValues ,请 weakValues .