Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-520

Add a CopyOnWrite implementation of Map

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.0
    • 4.x
    • Map
    • None

    Description

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

      Jersey uses an implementation (com.sun.jersey.client.impl.CopyOnWriteHashMap) 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            dfeist Daniel Feist
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: