commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Neidhart (JIRA)" <>
Subject [jira] [Created] (COLLECTIONS-552) Add an EquatorMap
Date Thu, 05 Feb 2015 19:40:35 GMT
Thomas Neidhart created COLLECTIONS-552:

             Summary: Add an EquatorMap
                 Key: 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

View raw message