You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/06/08 15:25:27 UTC

DO NOT REPLY [Bug 29440] New: - [Collections] MultiSortedMap / MultiTreeMap

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29440>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29440

[Collections] MultiSortedMap / MultiTreeMap

           Summary: [Collections] MultiSortedMap / MultiTreeMap
           Product: Commons
           Version: Nightly Builds
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Collections
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: christian@siefkes.net


Currently Collections (v3.1-dev) contains only a single implementation of the
MultiMap interface: MultiHashMap. Sometimes it would be useful to have other
MultiMaps, e.g. MultiMaps following the SortedMap contract.

Since I had urgent need for such a MultiSortedMap, I copied-and-pasted
MultiHashMap to created a class "MultiTreeMap". I'm ready to add it as a patch
if you're interested.

Of course, this is a very ugly approach because of the code duplication. A
better solution would be to create an MultiMap implementation that wraps a map
of the requested type (HashMap, TreeMap, whatever) instead of subclassing.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org