commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Feist (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (COLLECTIONS-520) Add a CopyOnWrite implementation of Map
Date Thu, 01 May 2014 12:23:14 GMT

     [ https://issues.apache.org/jira/browse/COLLECTIONS-520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Feist updated COLLECTIONS-520:
-------------------------------------

    Description: 
Java provides implementations for List's and Set's but Map is missing.

Jersey uses an implementation ([com.sun.jersey.client.impl.CopyOnWriteHashMap|https://java.net/projects/jersey/sources/svn/content/trunk/jersey/jersey-client/src/main/java/com/sun/jersey/client/impl/CopyOnWriteHashMap.java])
but it doesn't fully implement Map because entrySet/keySet/values are not mutable.

I implemented a CaseInsensitiveCopyOnWriteMap in Mule and while it serves our purposes it's
not 100% complete and isn't thread-safe, and it would be good to see an implementation in
commons.  (BTW: I plan to extend from AsbtractHashedMap once we moved to 4.0/4.1).  

See:  [org.mule.util.CopyOnWriteCaseInsensitiveMap|https://github.com/mulesoft/mule/blob/716893e6231be47dccd3cfba9619762e146b4b84/core/src/main/java/org/mule/util/CopyOnWriteCaseInsensitiveMap.java]

  was:
Java provides implementations for List's and Set's but Map is missing.

Jersey uses an implementation (com.sun.jersey.client.impl.CopyOnWriteHashMap<K, V>)
but it doesn't fully implement Map because entrySet/keySet/values are not mutable.

I implemented a CaseInsensitiveCopyOnWriteMap in Mule and while it serves our purposes it's
not 100% complete and isn't thread-safe, and it would be good to see an implementation in
commons.  (BTW: I plan to extend from AsbtractHashedMap once we moved to 4.0/4.1).  

See:  https://github.com/mulesoft/mule/blob/716893e6231be47dccd3cfba9619762e146b4b84/core/src/main/java/org/mule/util/CopyOnWriteCaseInsensitiveMap.java


> Add a CopyOnWrite implementation of Map
> ---------------------------------------
>
>                 Key: COLLECTIONS-520
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-520
>             Project: Commons Collections
>          Issue Type: New Feature
>          Components: Map
>    Affects Versions: 4.0
>            Reporter: Daniel Feist
>
> Java provides implementations for List's and Set's but Map is missing.
> Jersey uses an implementation ([com.sun.jersey.client.impl.CopyOnWriteHashMap|https://java.net/projects/jersey/sources/svn/content/trunk/jersey/jersey-client/src/main/java/com/sun/jersey/client/impl/CopyOnWriteHashMap.java])
but it doesn't fully implement Map because entrySet/keySet/values are not mutable.
> I implemented a CaseInsensitiveCopyOnWriteMap in Mule and while it serves our purposes
it's not 100% complete and isn't thread-safe, and it would be good to see an implementation
in commons.  (BTW: I plan to extend from AsbtractHashedMap once we moved to 4.0/4.1).  
> See:  [org.mule.util.CopyOnWriteCaseInsensitiveMap|https://github.com/mulesoft/mule/blob/716893e6231be47dccd3cfba9619762e146b4b84/core/src/main/java/org/mule/util/CopyOnWriteCaseInsensitiveMap.java]



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message