Thomas Neidhart created COLLECTIONS-552:
-------------------------------------------
Summary: Add an EquatorMap
Key: COLLECTIONS-552
URL: https://issues.apache.org/jira/browse/COLLECTIONS-552
Project: Commons Collections
Issue Type: New Feature
Affects Versions: 4.0
Reporter: Thomas Neidhart
An EquatorMap would use an Equator to compute the hashCode and make equality
checks for the keys. Sometimes there is the use case to put objects into a map
but their equals/hashCode implementation does not support that or one needs a
custom version. The usual solution is to put the object in some kind of
wrapper, but this requires additional memory.
By providing an Equator, one can create custom maps quite easily. The
implementation could be similar to the previous IdentityMap.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)