jhalterman / expiringmap

A high performance thread-safe map that expires entries
Apache License 2.0
1.01k stars 142 forks source link

Why test object equality when you call put on the map ? #82

Open Raidez opened 1 year ago

Raidez commented 1 year ago

It's just a question, but why ?

I've got a problem where I can't change the override of equals of my object. In classic HashMap implementation, put always make the change whatever the equality.

So why your implementation of ExpiringMap works differently ?

Raidez commented 8 months ago

up