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

Published by nareshjavatips

Java Edicted

Leave a comment