Issue 310 in google-collections: Allow asMap() to return a Map which has defined value Collections

3 views
Skip to first unread message

codesite...@google.com

unread,
Dec 18, 2009, 4:13:25 PM12/18/09
to google-coll...@googlegroups.com
Status: New
Owner: ----

New issue 310 by jtorson: Allow asMap() to return a Map which has defined
value Collections
http://code.google.com/p/google-collections/issues/detail?id=310

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.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
Dec 18, 2009, 7:04:34 PM12/18/09
to google-coll...@googlegroups.com
Updates:
Status: Duplicate
Mergedinto: 118

Comment #1 on issue 310 by kev...@google.com: Allow asMap() to return a Map

dup of 118 (which was itself a repeat of 10)

Reply all
Reply to author
Forward
0 new messages