Replies: 1 comment
-
There is no planned support. It would fall under two strategies, which at this time don't make sense for us. Wrap the keyThe key can be wrapped with a custom equivalence strategy, like with any other hashmap type. As this can easily be done in user code, it doesn't carry its weight to make as a feature in this library. See Guava's Equivalence and the Custom hash tableThe wrapper can be avoided by having the hash table call the equivalence strategy's methods with the key. However, this requires forking |
Beta Was this translation helpful? Give feedback.
-
Hi, Ben!
Currently caffeine relies only for canonical equality/hashing policy via proper defined #equals() and #hashCode() methods. Do you have any plans to support something like
?
Or would you mind for pull request to support it?
Beta Was this translation helpful? Give feedback.
All reactions