DaveAKing / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

Missing overloadings in Multimaps #1611

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
After reading the javadoc of the class Multimaps it seems that it is common 
that some methods are overloaded for a Multimap, ListMultimap and SetMultimap, 
e.g.
- asMap()
- filterKeys()

However, the method filterValues() is overloaded only for Multimap and 
SetMultimap and the methods transformValues() and transformEntries() are 
overloaded only for Multimap and ListMultimap.

I'm wondering why filterValues() has no overloading for ListMultimap and why 
transformValues() and transformEntries() have no overloading for SetMultimap.
In my opinion these overloadings would all make sense.
Was there any reason to exclude these overloadings?

Original issue reported on code.google.com by ruben.gr...@googlemail.com on 14 Dec 2013 at 10:02

GoogleCodeExporter commented 9 years ago
There's no good implementation of Lists.filter nor of Sets.transform, so 
there's no sensible way to extend them to Multimaps, either.

Original comment by wasserman.louis on 14 Dec 2013 at 5:24

GoogleCodeExporter commented 9 years ago
(both of which are listed in 
https://code.google.com/p/guava-libraries/wiki/IdeaGraveyard for more 
information)

Original comment by kevinb@google.com on 14 Dec 2013 at 5:54

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<issue id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:10

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:08