On Wed, Apr 9, 2008 at 7:29 AM, kevin bourrillion <kev
...@google.com> wrote:
> In order for this override to be possible, Multimap.asMap() must be defined
> to return Map<K, ? extends Collection<V>>, and ListMultimap.asMap() Map<K, ?
> extends List<V>>.
> But wildcards in return types of methods == user sadness. You have to push
> that "? extends" all throughout your own code.
> Jared made this change once, and thankfully saw the damage it did to user
> code and backed out.
> On Sun, Apr 6, 2008 at 5:58 PM, Nick Partridge <nkp...@gmail.com> wrote:
> > Hey,
> > Is it possible that asMap() for a ListMultimap could be changed to
> > return a Map<K, List<V>>, rather than the Map<K, Collection<V>> that
> > it returns now? It seems a bit inconsistent with the behaviour of get
> > (which does return a List).
> > Thanks,
> > Nick Partridge
> --
> Kevin Bourrillion @ Google
> internal: go/javalibraries
> google-collections.googlecode.com
> google-guice.googlecode.com