Re: [guava] Enhancement Request to Multimap (removeAll(Set<K>) or something like it)

55 views
Skip to first unread message

Chris Povirk

unread,
Feb 26, 2013, 3:44:25 PM2/26/13
to Pranav Shah, guava-...@googlegroups.com
We point feature requesters to
<http://code.google.com/p/guava-libraries/issues/entry>. For this
specific request, though, I'll just say
"multimap.keySet().removeAll(set)" :) We're big fans of collection
views for just this reason: They let you compose complex operations
out of a few primitives.

Luke Sandberg

unread,
Feb 26, 2013, 4:00:29 PM2/26/13
to Pranav Shah, guava-...@googlegroups.com
try

multimap.keys().removeAll(collection-of-keys)


On Tue, Feb 26, 2013 at 2:28 PM, Pranav Shah <pranav....@gmail.com> wrote:
Hi,
  I hope this is the right place to bring this up.

  I was wondering is there is any specific reason why Multimap has "removeAll(K)", but nothing to remove a Set of keys.  

  I am currently doing this with a for loop.

  Thanks.

--
--
guava-...@googlegroups.com
Project site: http://guava-libraries.googlecode.com
This group: http://groups.google.com/group/guava-discuss
 
This list is for general discussion.
To report an issue: http://code.google.com/p/guava-libraries/issues/entry
To get help: http://stackoverflow.com/questions/ask (use the tag "guava")
 
---
You received this message because you are subscribed to the Google Groups "guava-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guava-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Pranav Shah

unread,
Feb 27, 2013, 10:20:48 AM2/27/13
to guava-...@googlegroups.com, Pranav Shah
Thanks that helps.  I did not know that it was possible to do so in this manner.

Thanks

Pranav Shah

unread,
Feb 27, 2013, 10:21:09 AM2/27/13
to guava-...@googlegroups.com, Pranav Shah
Thanks,

  I will keep this in mind as well.
Reply all
Reply to author
Forward
0 new messages