views:

37

answers:

1

I've been reading that ComputingMap only supports identity equality and not the equals(). Can someone clarify why?

A: 

As for all concurrent maps built using MapMaker, equals() is used for strong references and identity equality is used for weak and soft references.

See softKeys, weakKeys, softValues, weakValues.

Andres Rodriguez