Why doesn't Google's Multimap's entries() method return Key/Collection pairs?

Posted by HenryTyler on Stack Overflow See other posts from Stack Overflow or by HenryTyler
Published on 2010-06-16T09:09:13Z Indexed on 2010/06/16 9:12 UTC
Read the original article Hit count: 176

Filed under:
|

I would like to be able to retrieve from my com.google.collections.Multimap<A, B> a Collection<Entry<A, Collection<B>>> which I expected from the entries() method, but in fact it returns a Collection<Entry<A, B>>. Is there a method which does what I want?

© Stack Overflow or respective owner

Related posts about java

Related posts about google-collections