tikinghu / google-collections

Automatically exported from code.google.com/p/google-collections
0 stars 0 forks source link

Allow asMap() to return a Map which has defined value Collections #310

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The asMap() method currently always returns <K, Collection<V>> whether the
implementation is an ArrayListMultimap or a HashSetMultimap.  It seems like
the Multimap interface could have another generic to tell what its return
type is and be defined as <? extends Collection>. 

Although it seems like a List and Set are truly returned, it's would be
nicer to know from the returned Map, if it allows or has duplicates in the
Collection or not and if it's indexable.

Original issue reported on code.google.com by jtor...@gmail.com on 18 Dec 2009 at 9:12

GoogleCodeExporter commented 9 years ago
dup of 118 (which was itself a repeat of 10)

Original comment by kevinb@google.com on 19 Dec 2009 at 12:04