com.google.common.collect.Multimap better than java.util.Map

When ever you use map you have a burden that map doesn’t take duplicate key it replaces new with old one when ever you enter duplicate key ,

but com.google.common.collect.Multimap  has solution of this problem  it maintains a list of values  when every you enter a duplicate key so it will accept it’s value and return your value as a collections

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s