Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6567419

(coll) Add MultiMap, MultiSet interfaces

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 7
    • core-libs

      A DESCRIPTION OF THE REQUEST :
      There are no MultiSet or MultiMap interface specifications. Using the standard Map/Set interface is a bit clumsy, despite there capability to emulate a Multi-variant (as mentioned in online Map doc). I would be happy if just the MultiMap and MultiSet interfaces were specified since I would be implementating my own. I am less concerned about actual implementations (hash-based,tree-based, sorted,linked), though of course, some might scream if interfaces were published without at least a couple implementations ;-). I suppose an AbstractMultiMap and AbstractMultiSet may appease the masses.


      JUSTIFICATION :
      Though prior bug reports on MultiMap's and MultiSets have been shot down in the past because they are apparently "rarely" used according to Map documentation and also rarely requested, I find that fairly hard to believe. MultiMap's and MultiSet's happen to make fantastic adapters for relational databases or object oriented databases (like the custom one we use at my company).

            martin Martin Buchholz
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: